diff --git a/source/locale/compile_mo.sh b/source/locale/compile_mo.sh new file mode 100755 index 00000000..d60396bf --- /dev/null +++ b/source/locale/compile_mo.sh @@ -0,0 +1,11 @@ +#!/bin/bash +if [ $# -eq 1 ]; then + LC=$1 + # "assume" LC is valid .. maybe someone "bored" wants to write some checks, but hey, this isn't a user-interface :-P + msgfmt -c -v -o $LC/LC_MESSAGES/AC.mo $LC/LC_MESSAGES/AC.po + cp -f $LC/LC_MESSAGES/AC.mo ../../packages/locale/$LC/LC_MESSAGES/AC.mo +else + echo "pass me a language-code (LC) to compile for (de, it, ...)" + #echo "you should have prepared ../../packages/locale/__LC__/LC_MESSAGES - where __LC__ is your language code!" +fi +