1
- # $PostgreSQL: pgsql/src/nls-global.mk,v 1.15 2008/12/11 07:34:07 petere Exp $
1
+ # $PostgreSQL: pgsql/src/nls-global.mk,v 1.16 2009/01/02 15:15:42 petere Exp $
2
2
3
3
# Common rules for Native Language Support (NLS)
4
4
#
@@ -36,7 +36,7 @@ PO_FILES = $(addprefix po/, $(addsuffix .po, $(LANGUAGES)))
36
36
MO_FILES =$(addprefix po/,$(addsuffix .mo,$(LANGUAGES ) ) )
37
37
38
38
ifdef XGETTEXT
39
- XGETTEXT += --foreign-user -ctranslator
39
+ XGETTEXT += -ctranslator --copyright-holder='PostgreSQL Global Development Group' --msgid-bugs-address=pgsql-bugs@postgresql.org
40
40
endif
41
41
42
42
@@ -56,7 +56,8 @@ po/$(CATALOG_NAME).pot: $(GETTEXT_FILES)
56
56
$(XGETTEXT) -D $(srcdir) -n $(addprefix -k, $(GETTEXT_TRIGGERS)) $(GETTEXT_FILES)
57
57
endif
58
58
@$(mkinstalldirs) $(dir $@)
59
- mv messages.po $@
59
+ sed -e '1,18 { s/SOME DESCRIPTIVE TITLE./LANGUAGE message translation file for $(CATALOG_NAME)/;s/PACKAGE/PostgreSQL/g;s/VERSION/$(MAJORVERSION)/g;s/YEAR/'`date +%Y`'/g; }' messages.po >$@
60
+ rm messages.po
60
61
else# not XGETTEXT
61
62
@echo "You don't have 'xgettext'."; exit 1
62
63
endif # not XGETTEXT