]> xenbits.xensource.com Git - libvirt.git/commitdiff
po: generate .pot file with strings in alphabetical order
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 18 May 2020 16:46:31 +0000 (17:46 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 4 Jun 2020 10:18:35 +0000 (11:18 +0100)
The .po files are stored with strings in alphabetical order instead of
source file location order, because this minimizes the diffs created
when code moves around within or between files.

By default msgmerge will honour the order of strings in the .pot file
when creating a .po file, so it is useful if we also create the .pot
file with desired ordering.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
po/Makefile.am

index 224f16e99347993867b4ef1f44b9b2ec2d41cf8f..a31f8ba584b64452e10862efcf5a94059a30b726 100644 (file)
@@ -32,6 +32,7 @@ XGETTEXT_ARGS = \
        --package-name="$(PACKAGE_NAME)" \
        --package-version="$(PACKAGE_VERSION)" \
        --msgid-bugs-address="$(MSGID_BUGS_ADDRESS)" \
+       --sort-output \
        $(NULL)
 
 SED_PO_FIXUP_ARGS = \