diff options
Diffstat (limited to 'pocompile.sh')
-rwxr-xr-x | pocompile.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pocompile.sh b/pocompile.sh new file mode 100755 index 0000000..b895b9a --- /dev/null +++ b/pocompile.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# Helper script to compile all .po files in the i18n directroy into .mo files. + +# Copied from porthole :) +cd i18n +for ITEM in *.po; do + ITEM2=${ITEM/.po/} + LANG=${ITEM2/_??/} + mkdir ${LANG}/LC_MESSAGES -p + msgfmt ${ITEM} -o ${LANG}/LC_MESSAGES/portato.mo +done |