annotate scripts/install-po.sh @ 839:99e1e67f3916 pyntnclick

Add fuzzy/untranslated stats infowhen producing mo files
author Neil Muller <neil@dip.sun.ac.za>
date Wed, 30 Jan 2013 10:33:21 +0200
parents cc284445181b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
478
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
1 #!/bin/sh
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
2
479
4ea237bbcef8 Tidy up the i18n changes
Stefano Rivera <stefano@rivera.za.net>
parents: 478
diff changeset
3 # Compiles and installs translation catalogs
478
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
4
779
087d3ff0aa08 Move po scripts into scripts. Bundle msgfmt.py from cpython too
Stefano Rivera <stefano@rivera.za.net>
parents: 769
diff changeset
5 set -eu
087d3ff0aa08 Move po scripts into scripts. Bundle msgfmt.py from cpython too
Stefano Rivera <stefano@rivera.za.net>
parents: 769
diff changeset
6
788
abfa4f7e89a0 Update scripts to handle moved po directory
Neil Muller <neil@dip.sun.ac.za>
parents: 779
diff changeset
7 for pofile in data/po/*.po; do
abfa4f7e89a0 Update scripts to handle moved po directory
Neil Muller <neil@dip.sun.ac.za>
parents: 779
diff changeset
8 molang=`echo $pofile | sed -e 's#data/po/\(.*\)\\.po#\\1#'`;
478
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
9 mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`;
769
43b49f1de828 Merge i18n for before the pyntnclick split
Stefano Rivera <stefano@rivera.za.net>
parents: 479
diff changeset
10 mkdir -p data/locale/$molang/LC_MESSAGES
839
99e1e67f3916 Add fuzzy/untranslated stats infowhen producing mo files
Neil Muller <neil@dip.sun.ac.za>
parents: 801
diff changeset
11 scripts/msgfmt.py -s -o data/locale/$molang/LC_MESSAGES/suspended-sentence.mo $pofile
478
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
12 done
795
42cfafa20437 Add the rest of the commit
Neil Muller <neil@dip.sun.ac.za>
parents: 788
diff changeset
13
42cfafa20437 Add the rest of the commit
Neil Muller <neil@dip.sun.ac.za>
parents: 788
diff changeset
14 for pofile in pyntnclick/data/po/*.po; do
801
cc284445181b Fix install-po.sh to handle module locale correctly
Neil Muller <neil@dip.sun.ac.za>
parents: 795
diff changeset
15 molang=`echo $pofile | sed -e 's#pyntnclick/data/po/\(.*\)\\.po#\\1#'`;
795
42cfafa20437 Add the rest of the commit
Neil Muller <neil@dip.sun.ac.za>
parents: 788
diff changeset
16 mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`;
801
cc284445181b Fix install-po.sh to handle module locale correctly
Neil Muller <neil@dip.sun.ac.za>
parents: 795
diff changeset
17 mkdir -p pyntnclick/data/locale/$molang/LC_MESSAGES
839
99e1e67f3916 Add fuzzy/untranslated stats infowhen producing mo files
Neil Muller <neil@dip.sun.ac.za>
parents: 801
diff changeset
18 scripts/msgfmt.py -s -o pyntnclick/data/locale/$molang/LC_MESSAGES/pyntnclick-tools.mo $pofile
795
42cfafa20437 Add the rest of the commit
Neil Muller <neil@dip.sun.ac.za>
parents: 788
diff changeset
19 done