From: Peter Eisentraut Date: Thu, 5 Apr 2012 18:22:15 +0000 (+0300) Subject: NLS: Use msgmerge/xgettext --no-wrap and --sort-by-file X-Git-Tag: REL9_2_BETA1~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05261ab6246cba9701b8529eba812b8a68c3be8d;p=postgresql NLS: Use msgmerge/xgettext --no-wrap and --sort-by-file The option --no-wrap prevents wars with (most?) editors about proper line wrapping. --sort-by-file ensures consistent file order, for easier diffing. --- diff --git a/src/nls-global.mk b/src/nls-global.mk index 25899a49b4..2e11b48eba 100644 --- a/src/nls-global.mk +++ b/src/nls-global.mk @@ -40,7 +40,11 @@ ALL_PO_FILES = $(addprefix po/, $(addsuffix .po, $(AVAIL_LANGUAGES))) MO_FILES = $(addprefix po/, $(addsuffix .mo, $(LANGUAGES))) ifdef XGETTEXT -XGETTEXT += -ctranslator --copyright-holder='PostgreSQL Global Development Group' --msgid-bugs-address=pgsql-bugs@postgresql.org +XGETTEXT += -ctranslator --copyright-holder='PostgreSQL Global Development Group' --msgid-bugs-address=pgsql-bugs@postgresql.org --no-wrap --sort-by-file +endif + +ifdef MSGMERGE +MSGMERGE += --no-wrap --sort-by-file endif # _ is defined in c.h, so it's global