diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2012-04-02 02:58:37 +0300 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2012-04-02 02:58:37 +0300 |
commit | c2cc5c347440e48bc4d0e4ed083db2f3966a0e90 (patch) | |
tree | dd4f132bf0fbdf5ee09d4455e370beada08571e0 /src | |
parent | 5633df2582bedc93c2fb37555b7376eb51518bd5 (diff) | |
download | postgresql-c2cc5c347440e48bc4d0e4ed083db2f3966a0e90.tar.gz postgresql-c2cc5c347440e48bc4d0e4ed083db2f3966a0e90.zip |
NLS: Seed Language field in PO header
Use msgmerge --lang option to seed the Language field, recently
introduced by gettext, in the header of the new PO file.
Diffstat (limited to 'src')
-rw-r--r-- | src/nls-global.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nls-global.mk b/src/nls-global.mk index aa60e63fc3f..25899a49b40 100644 --- a/src/nls-global.mk +++ b/src/nls-global.mk @@ -136,14 +136,14 @@ endif update-po: $(ALL_LANGUAGES:%=po/%.po.new) $(AVAIL_LANGUAGES:%=po/%.po.new): po/%.po.new: po/%.po po/$(CATALOG_NAME).pot $(all_compendia) - $(MSGMERGE) $(word 1, $^) $(word 2,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 3,$(words $^),$^))) + $(MSGMERGE) --lang=$* $(word 1, $^) $(word 2,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 3,$(words $^),$^))) # For languages not yet available, merge against oneself, to pick # up translations from the compendia. (Merging against /dev/null # doesn't work so well; it inserts the headers from the first-named # compendium.) po/%.po.new: po/$(CATALOG_NAME).pot $(all_compendia) - $(MSGMERGE) $(word 1,$^) $(word 1,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 2,$(words $^),$^))) + $(MSGMERGE) --lang=$* $(word 1,$^) $(word 1,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 2,$(words $^),$^))) all: all-po |