diff options
author | Mark Longair <mhl@pobox.com> | 2012-10-19 13:52:13 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2012-10-19 14:16:16 +0100 |
commit | eb9b8d995d33c5f90d405c31342b08849f601570 (patch) | |
tree | fc0c9030c44ddc48e2c9f437ce3fb6117afad112 /bin/gettext-extract | |
parent | a4940bc8a5cb9f8d23709088e868deb809568ce3 (diff) |
Set up internationalization with Transifex
gettext-extract needs to be changed to instantiate values
in the Plural-Forms header line, otherwise on pushing the
source pot file (locale/FixMyStreet.po) it fails one of
the checks that Transifex runs (msgfmt -c).
This commit also adds the .tx/config configuration file,
which points to the right project on Transifix and
specifies where the source and translated files are in
the project structure.
Diffstat (limited to 'bin/gettext-extract')
-rwxr-xr-x | bin/gettext-extract | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/gettext-extract b/bin/gettext-extract index 6bae8aa36..e77cf9cb0 100755 --- a/bin/gettext-extract +++ b/bin/gettext-extract @@ -46,7 +46,7 @@ cat $PO | sed " s/POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE/POT-Creation-Date: $NOW/; s/LL@li.org/team@fixmystreet.com/; s/charset=CHARSET/charset=UTF-8/; - s/8bit/8bit\\\n\"\\$nl\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;/; + s/8bit/8bit\\\n\"\\$nl\"Plural-Forms: nplurals=2; plural=n != 1;/; " >> $TEMP mv $TEMP $PO |