From 7834820bdf7ed0b9edb5ae43b48378e207eb2612 Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Mon, 19 Oct 2026 13:55:44 +0200 Subject: [PATCH] po: give xgettext the keywords it had before Since the switch to GNU gettext, the strings with a context (C_, NC_) and in po-properties all of them (P_) no longer went into the .pot files. Back to what the GLib Makefile.in.in passed. --- po-properties/Makevars | 2 +- po/Makevars | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/po-properties/Makevars b/po-properties/Makevars index 586cf7811..92a550177 100644 --- a/po-properties/Makevars +++ b/po-properties/Makevars @@ -13,7 +13,7 @@ subdir = po-properties top_builddir = .. # These options get passed to xgettext. -XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ +XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword --keyword=P_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding diff --git a/po/Makevars b/po/Makevars index 9ea6a00e0..b449a7d17 100644 --- a/po/Makevars +++ b/po/Makevars @@ -13,7 +13,8 @@ subdir = po top_builddir = .. # These options get passed to xgettext. -XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ +XGETTEXT_OPTIONS = --from-code=UTF-8 --keyword=_ --keyword=N_ --keyword=C_:1c,2 \ + --keyword=NC_:1c,2 --keyword=g_dngettext:2,3 # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding