Skip to content

Commit b287f0a

Browse files
committed
Do not msgmerge against /dev/null; merge against the pot file itself
instead.
1 parent 93a6be6 commit b287f0a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/nls-global.mk

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $PostgreSQL: pgsql/src/nls-global.mk,v 1.19 2009/01/15 09:01:24 petere Exp $
1+
# $PostgreSQL: pgsql/src/nls-global.mk,v 1.20 2009/01/20 09:58:50 petere Exp $
22

33
# Common rules for Native Language Support (NLS)
44
#
@@ -113,10 +113,12 @@ update-po: $(ALL_LANGUAGES:%=po/%.po.new)
113113
$(AVAIL_LANGUAGES:%=po/%.po.new): po/%.po.new: po/%.po po/$(CATALOG_NAME).pot $(all_compendia)
114114
$(MSGMERGE) $(word 1, $^) $(word 2,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 3,$(words $^),$^)))
115115

116-
# For languages not yet available, merge against empty file, to pick
117-
# up translations from the compendia.
116+
# For languages not yet available, merge against oneself, to pick
117+
# up translations from the compendia. (Merging against /dev/null
118+
# doesn't work so well; it inserts the headers from the first-named
119+
# compendium.)
118120
po/%.po.new: po/$(CATALOG_NAME).pot $(all_compendia)
119-
$(MSGMERGE) /dev/null $(word 1,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 2,$(words $^),$^)))
121+
$(MSGMERGE) $(word 1,$^) $(word 1,$^) -o $@ $(addprefix --compendium=,$(filter %/$*.po,$(wordlist 2,$(words $^),$^)))
120122

121123

122124
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