From 737cadff772c1bdc6ab9f2d695dd5e0cdf65016b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Mon, 18 May 2020 17:46:31 +0100 Subject: [PATCH] po: generate .pot file with strings in alphabetical order MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Daniel P. Berrangé --- po/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/po/Makefile.am b/po/Makefile.am index 224f16e993..a31f8ba584 100644 --- a/po/Makefile.am +++ b/po/Makefile.am @@ -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 = \