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.
This commit is contained in:
Daemonratte 2026-10-19 13:55:44 +02:00
commit 7834820bdf
2 changed files with 3 additions and 2 deletions

View file

@ -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

View file

@ -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