]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Translations: Use the msgmerge option --add-location=file
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 27 May 2024 21:43:53 +0000 (00:43 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 27 May 2024 21:43:53 +0000 (00:43 +0300)
This way the PO file diffs are less noisy but the locations of the
strings are still present at file level, just without line numbers.

The option is available since gettext 0.19 (2014).
configure.ac requires 0.19.6.

po/Makevars

index 627d34ec9a4469deca22c90cff1b31e641d8a51a..3f56947c93075312aea915a50ddfc4fb89f20260 100644 (file)
@@ -63,7 +63,7 @@ USE_MSGCTXT = no
 # Useful options are in particular:
 #   --previous            to keep previous msgids of translated messages,
 #   --quiet               to reduce the verbosity.
-MSGMERGE_OPTIONS = --no-wrap
+MSGMERGE_OPTIONS = --add-location=file --no-wrap
 
 # These options get passed to msginit.
 # If you want to disable line wrapping when writing PO files, add