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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy