summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2022-04-07 12:25:57 +0300
committerPanu Matilainen <pmatilai@redhat.com>2022-04-07 13:11:51 +0300
commit238c3120ddfc84c8afd7bafc03faafff107ddd81 (patch)
treed3239815c7d1d19fc7a1b1c01ed633dbabac28e5
parent4f34fa9623c4fada7f075fff0088ccb5b75e26d9 (diff)
downloadrpm-238c3120ddfc84c8afd7bafc03faafff107ddd81.tar.gz
Tone down the gettext churn a bit
Limit the amount of (irrelevant) changes in the po/ department: skip location information in both the .pot and .po files. Optimally we wouldn't touch the .po files at all, because this is Weblate territory. However there doesn't seem to be any way to achieve that without modifying po/Makefile.in* which are generated files and so not really modifiable without creating other headaches.
-rw-r--r--po/Makevars14
1 files changed, 13 insertions, 1 deletions
diff --git a/po/Makevars b/po/Makevars
index 32692ab4b..49f7f2a5c 100644
--- a/po/Makevars
+++ b/po/Makevars
@@ -8,7 +8,7 @@ subdir = po
top_builddir = ..
# These options get passed to xgettext.
-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --no-location
# 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
@@ -39,3 +39,15 @@ MSGID_BUGS_ADDRESS =
# This is the list of locale categories, beyond LC_MESSAGES, for which the
# message catalogs shall be used. It is usually empty.
EXTRA_LOCALE_CATEGORIES =
+
+# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
+# context. Possible values are "yes" and "no". Set this to yes if the
+# package uses functions taking also a message context, like pgettext(), or
+# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
+USE_MSGCTXT = no
+
+# These options get passed to msgmerge.
+# Useful options are in particular:
+# --previous to keep previous msgids of translated messages,
+# --quiet to reduce the verbosity.
+MSGMERGE_OPTIONS = --no-location