general mo-compile .SH

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6671 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2011-10-18 16:19:44 +00:00
parent c38b7ea5ed
commit 968230276f
+11
View File
@@ -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