Added support for pgettext() and npgettext() to separate contexts for translatable messages that are going to be ambiguous in English original.

This commit is contained in:
Brion Vibber
2009-11-18 14:57:18 -08:00
parent cac5a417f2
commit 1827256d0e
3 changed files with 69 additions and 5 deletions

View File

@@ -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