r8879 - packages/trunk/glest/debian
Siegfried-Angel Gevatter Pujals
rainct-guest at alioth.debian.org
Tue Feb 17 22:59:53 UTC 2009
Author: rainct-guest
Date: 2009-02-17 22:59:53 +0000 (Tue, 17 Feb 2009)
New Revision: 8879
Modified:
packages/trunk/glest/debian/changelog
packages/trunk/glest/debian/glest.sh
Log:
just "<langname>". Also, if the selected language isn't available
anymore change it back to "english", in order to avoid the game refusing
to start.
Modified: packages/trunk/glest/debian/changelog
===================================================================
--- packages/trunk/glest/debian/changelog 2009-02-17 22:53:17 UTC (rev 8878)
+++ packages/trunk/glest/debian/changelog 2009-02-17 22:59:53 UTC (rev 8879)
@@ -28,7 +28,9 @@
- Change "english.lng" to just "english".
* debian/glest.sh:
- If there is an existing glest.ini file, change "<langname.lng>" to
- just "<langname>".
+ just "<langname>". Also, if the selected language isn't available
+ anymore change it back to "english", in order to avoid the game refusing
+ to start.
-- Siegfried-Angel Gevatter Pujals <rainct at ubuntu.com> Tue, 17 Feb 2009 21:08:33 +0100
Modified: packages/trunk/glest/debian/glest.sh
===================================================================
--- packages/trunk/glest/debian/glest.sh 2009-02-17 22:53:17 UTC (rev 8878)
+++ packages/trunk/glest/debian/glest.sh 2009-02-17 22:59:53 UTC (rev 8879)
@@ -6,6 +6,9 @@
if [ -f glest.ini ]; then
# Update for Glest 3.2.1
sed -i 's/\.lng//' glest.ini
+ language=$(cat glest.ini | grep Lang | cut -d'=' -f2)
+ [ -f /usr/share/games/glest/data/lang/${language}.lng ] || \
+ sed -i "s/${language}/english/" glest.ini
else
cp /usr/lib/glest/glest.ini .
fi
More information about the Pkg-games-commits
mailing list