Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit c2cc5c3

Browse files
committed
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.
1 parent 5633df2 commit c2cc5c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nls-global.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ endif
136136
update-po: $(ALL_LANGUAGES:%=po/%.po.new)
137137

138138
$(AVAIL_LANGUAGES:%=po/%.po.new): po/%.po.new: po/%.po po/$(CATALOG_NAME).pot $(all_compendia)
139-
$(MSGMERGE) $(word 1, $^) $(word 2,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 3,$(words $^),$^)))
139+
$(MSGMERGE) --lang=$* $(word 1, $^) $(word 2,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 3,$(words $^),$^)))
140140

141141
# For languages not yet available, merge against oneself, to pick
142142
# up translations from the compendia. (Merging against /dev/null
143143
# doesn't work so well; it inserts the headers from the first-named
144144
# compendium.)
145145
po/%.po.new: po/$(CATALOG_NAME).pot $(all_compendia)
146-
$(MSGMERGE) $(word 1,$^) $(word 1,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 2,$(words $^),$^)))
146+
$(MSGMERGE) --lang=$* $(word 1,$^) $(word 1,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 2,$(words $^),$^)))
147147

148148

149149
all: all-po

0 commit comments

Comments
 (0)