From 05261ab6246cba9701b8529eba812b8a68c3be8d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut <peter_e@gmx.net> Date: Thu, 5 Apr 2012 21:22:15 +0300 Subject: [PATCH] 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. --- src/nls-global.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nls-global.mk b/src/nls-global.mk index 25899a49b40..2e11b48eba6 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 -- GitLab