Re: [Sugar-devel] [PATCH sugar 1/2] recognise translations using pgettext

2011-02-15 Thread Sascha Silbe
Excerpts from Sascha Silbe's message of Fri Feb 11 20:24:23 +0100 2011:

> Since Python doesn't support pgettext, we need to teach xgettext to recognise
> it.

Ack'ed by Simon on #sugar and pushed as bfb7922 [1].

Sascha

[1] 
http://git.sugarlabs.org/sugar/mainline/commit/bfb7922bff09f3e7845a3e77023ae9b3bf5f56fc
-- 
http://sascha.silbe.org/
http://www.infra-silbe.de/


signature.asc
Description: PGP signature
___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel


[Sugar-devel] [PATCH sugar 1/2] recognise translations using pgettext

2011-02-11 Thread Sascha Silbe
Since Python doesn't support pgettext, we need to teach xgettext to recognise
it.

Signed-off-by: Sascha Silbe 
---
 po/Makevars |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 po/Makevars

diff --git a/po/Makevars b/po/Makevars
new file mode 100644
index 000..da4dba6
--- /dev/null
+++ b/po/Makevars
@@ -0,0 +1 @@
+XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --keyword=C_:1c,2 
--keyword=NC_:1c,2 --keyword=Q_ --keyword=g_dgettext:2 
--keyword=g_dngettext:2,3 --keyword=g_dpgettext:2 --keyword=g_dpgettext2=2c,3 
--keyword=pgettext:1c,2
-- 
1.7.2.3

___
Sugar-devel mailing list
Sugar-devel@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/sugar-devel