Mercurial > boomslang
comparison scripts/install-po.sh @ 779:087d3ff0aa08 pyntnclick
Move po scripts into scripts. Bundle msgfmt.py from cpython too
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 26 Jan 2013 18:38:27 +0200 |
parents | install-po.sh@43b49f1de828 |
children | abfa4f7e89a0 |
comparison
equal
deleted
inserted
replaced
778:98cdb7458225 | 779:087d3ff0aa08 |
---|---|
1 #!/bin/sh | |
2 | |
3 # Compiles and installs translation catalogs | |
4 | |
5 set -eu | |
6 | |
7 for pofile in po/*.po; do | |
8 molang=`echo $pofile | sed -e 's#po/\(.*\)\\.po#\\1#'`; | |
9 mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`; | |
10 mkdir -p data/locale/$molang/LC_MESSAGES | |
11 scripts/msgfmt.py -o data/locale/$molang/LC_MESSAGES/suspended-sentence.mo $pofile | |
12 done |