Mercurial > pyntnclick
diff install-po.sh @ 769:43b49f1de828 pyntnclick-i18n
Merge i18n for before the pyntnclick split
author | Stefano Rivera <stefano@rivera.za.net> |
---|---|
date | Sat, 26 Jan 2013 16:57:33 +0200 |
parents | 4ea237bbcef8 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/install-po.sh Sat Jan 26 16:57:33 2013 +0200 @@ -0,0 +1,10 @@ +#!/bin/sh + +# Compiles and installs translation catalogs + +for pofile in po/*.po; do + molang=`echo $pofile | sed -e 's#po/\(.*\)\\.po#\\1#'`; + mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`; + mkdir -p data/locale/$molang/LC_MESSAGES + msgfmt $pofile -o data/locale/$molang/LC_MESSAGES/suspended-sentence.mo +done