Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2cc5c3

Browse files
committed
NLS: Seed Language field in PO header
Use msgmerge --lang option to seed the Language field, recentlyintroduced by gettext, in the header of the new PO file.
1 parent5633df2 commitc2cc5c3

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)

[8]ページ先頭

©2009-2025 Movatter.jp