Mercurial > boomslang
comparison scripts/install-po.sh @ 788:abfa4f7e89a0 pyntnclick
Update scripts to handle moved po directory
author | Neil Muller <neil@dip.sun.ac.za> |
---|---|
date | Sat, 26 Jan 2013 20:09:49 +0200 |
parents | 087d3ff0aa08 |
children | 42cfafa20437 |
comparison
equal
deleted
inserted
replaced
787:f46c3197e887 | 788:abfa4f7e89a0 |
---|---|
2 | 2 |
3 # Compiles and installs translation catalogs | 3 # Compiles and installs translation catalogs |
4 | 4 |
5 set -eu | 5 set -eu |
6 | 6 |
7 for pofile in po/*.po; do | 7 for pofile in data/po/*.po; do |
8 molang=`echo $pofile | sed -e 's#po/\(.*\)\\.po#\\1#'`; | 8 molang=`echo $pofile | sed -e 's#data/po/\(.*\)\\.po#\\1#'`; |
9 mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`; | 9 mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`; |
10 mkdir -p data/locale/$molang/LC_MESSAGES | 10 mkdir -p data/locale/$molang/LC_MESSAGES |
11 scripts/msgfmt.py -o data/locale/$molang/LC_MESSAGES/suspended-sentence.mo $pofile | 11 scripts/msgfmt.py -o data/locale/$molang/LC_MESSAGES/suspended-sentence.mo $pofile |
12 done | 12 done |