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/update_pot.sh') 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 From 69abde6e0cde3f010d993f0a86294fe57154aa4c Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Thu, 19 Nov 2009 01:04:47 +0100 Subject: Removing "join-existing". Do not add on update, just rebuild complete pot. The pot file gets really dirty, really quickly. --- scripts/update_pot.sh | 1 - 1 file changed, 1 deletion(-) (limited to 'scripts/update_pot.sh') diff --git a/scripts/update_pot.sh b/scripts/update_pot.sh index 8b44d43b4..de53fe7c9 100755 --- a/scripts/update_pot.sh +++ b/scripts/update_pot.sh @@ -7,7 +7,6 @@ xgettext \ --language=PHP \ --keyword="pgettext:1c,2" \ --keyword="npgettext:1c,2,3" \ - --join-existing \ actions/*.php \ classes/*.php \ lib/*.php \ -- cgit v1.2.3-54-g00ecf