From 1827256d0e2b49a77df46f90249c2ab893e0ac4f Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 18 Nov 2009 14:57:18 -0800 Subject: Added support for pgettext() and npgettext() to separate contexts for translatable messages that are going to be ambiguous in English original. --- scripts/update_pot.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/update_pot.sh b/scripts/update_pot.sh index 9419e4337..8b44d43b4 100755 --- a/scripts/update_pot.sh +++ b/scripts/update_pot.sh @@ -1,3 +1,14 @@ cd `dirname $0` cd .. -xgettext --from-code=UTF-8 --default-domain=statusnet --output=locale/statusnet.po --language=PHP --join-existing actions/*.php classes/*.php lib/*.php scripts/*.php +xgettext \ + --from-code=UTF-8 \ + --default-domain=statusnet \ + --output=locale/statusnet.po \ + --language=PHP \ + --keyword="pgettext:1c,2" \ + --keyword="npgettext:1c,2,3" \ + --join-existing \ + actions/*.php \ + classes/*.php \ + lib/*.php \ + scripts/*.php -- cgit v1.2.3-54-g00ecf