git repos / blockattack-game

commit 7fc3db80

sago007 · 2017-01-09 17:43
7fc3db80aef75e651585f7e5754d4e3d65d556a4 patch · browse files
parent bedb3aca0d71a6968d649b9153cacad5c173731d

Fixed the build script. So it no longer stripts the country.

Changed files

M source/misc/translation/build_mo_single_file.sh before
diff --git a/source/misc/translation/build_mo_single_file.sh b/source/misc/translation/build_mo_single_file.sh index 912433d..8cf604e 100755 --- a/source/misc/translation/build_mo_single_file.sh +++ b/source/misc/translation/build_mo_single_file.sh
@@ -6,7 +6,7 @@ test $1
POFILE=$1
LANGUAGE=${1##*/}
-LANGUAGE=${LANGUAGE%%_*}
+LANGUAGE=${LANGUAGE%%.*}
mkdir -p locale/$LANGUAGE/LC_MESSAGES
echo "Building $LANGUAGE from $1"
msgfmt -o locale/$LANGUAGE/LC_MESSAGES/blockattack_roftb.mo $1