po: Fix xgettext failing on unicode strings

It is needed to use -from-code=utf-8 to override the ASCII default

Caused by ceb866dfe6
This commit is contained in:
Rico Tzschichholz 2012-12-04 20:06:19 +01:00
parent 85d8f3c51e
commit b4767ea9da
2 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,7 @@ all-no:
$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
$(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \ $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
--add-comments --keyword --keyword=P_ \ --add-comments --keyword --keyword=P_ \
--from-code=utf-8 \
--files-from=$(srcdir)/POTFILES.in \ --files-from=$(srcdir)/POTFILES.in \
&& test ! -f $(GETTEXT_PACKAGE).po \ && test ! -f $(GETTEXT_PACKAGE).po \
|| ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \ || ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \

View File

@ -95,6 +95,7 @@ all-no:
$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES) $(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
$(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \ $(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
--add-comments --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 \ --add-comments --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 \
--from-code=utf-8 \
--keyword=g_dngettext:2,3 \ --keyword=g_dngettext:2,3 \
--flag=g_dngettext:2:pass-c-format \ --flag=g_dngettext:2:pass-c-format \
--flag=g_strdup_printf:1:c-format \ --flag=g_strdup_printf:1:c-format \