annotate install-po.sh @ 767:202f6a2fe091 i18n

Russian translated images (thanks Sergey Basalaev)
author Stefano Rivera <stefano@rivera.za.net>
date Sat, 11 Feb 2012 13:51:03 +0200
parents 4ea237bbcef8
children 43b49f1de828
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
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
5 for pofile in po/*.po; do
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
6 molang=`echo $pofile | sed -e 's#po/\(.*\)\\.po#\\1#'`;
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
7 mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`;
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
8 mkdir -p Resources/locale/$molang/LC_MESSAGES
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
9 msgfmt $pofile -o Resources/locale/$molang/LC_MESSAGES/suspended-sentence.mo
a9925aaf5f61 i18n and Russian translation
Stefano Rivera <stefano@rivera.za.net>
parents:
diff changeset
10 done