[gtk+] po: Fix xgettext failing on unicode strings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] po: Fix xgettext failing on unicode strings
- Date: Tue, 4 Dec 2012 19:14:43 +0000 (UTC)
commit b4767ea9da5fafe30fdc695287feeb6e4bdcc454
Author: Rico Tzschichholz <ricotz t-online de>
Date: Tue Dec 4 20:06:19 2012 +0100
po: Fix xgettext failing on unicode strings
It is needed to use -from-code=utf-8 to override the ASCII default
Caused by ceb866dfe6be6d88b8f83a3cbdb8a2a688419c82
po-properties/Makefile.in.in | 1 +
po/Makefile.in.in | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/po-properties/Makefile.in.in b/po-properties/Makefile.in.in
index c168dc2..9aa4617 100644
--- a/po-properties/Makefile.in.in
+++ b/po-properties/Makefile.in.in
@@ -97,6 +97,7 @@ all-no:
$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
$(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
--add-comments --keyword --keyword=P_ \
+ --from-code=utf-8 \
--files-from=$(srcdir)/POTFILES.in \
&& test ! -f $(GETTEXT_PACKAGE).po \
|| ( rm -f $(srcdir)/$(GETTEXT_PACKAGE).pot \
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
index 4e8ada3..1497212 100644
--- a/po/Makefile.in.in
+++ b/po/Makefile.in.in
@@ -95,6 +95,7 @@ all-no:
$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
$(XGETTEXT) --default-domain=$(GETTEXT_PACKAGE) --directory=$(top_srcdir) \
--add-comments --keyword=_ --keyword=N_ --keyword=C_:1c,2 --keyword=NC_:1c,2 \
+ --from-code=utf-8 \
--keyword=g_dngettext:2,3 \
--flag=g_dngettext:2:pass-c-format \
--flag=g_strdup_printf:1:c-format \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]