From 968230276f2fba2e32d0d193a1bd8d63d2f968d0 Mon Sep 17 00:00:00 2001 From: flowtron Date: Tue, 18 Oct 2011 16:19:44 +0000 Subject: [PATCH] general mo-compile .SH git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6671 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/locale/compile_mo.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 source/locale/compile_mo.sh 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 +