summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-11-18 14:57:18 -0800
committerBrion Vibber <brion@pobox.com>2009-11-18 14:57:18 -0800
commit1827256d0e2b49a77df46f90249c2ab893e0ac4f (patch)
treecfe5a3c0239a17ee5cbd00b30be77f4c6030e7d5 /scripts
parentcac5a417f2a81b974781d4dbc40fd9d718a7a7f2 (diff)
Added support for pgettext() and npgettext() to separate contexts for translatable messages that are going to be ambiguous in English original.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update_pot.sh13
1 files changed, 12 insertions, 1 deletions
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