This is an automated email from the git hooks/post-receive script. detiste-guest pushed a commit to branch master in repository lure-of-the-temptress.
commit e610b9f4b1acfab05d871bc6588518a0cfb1563d Author: Alexandre Detiste <[email protected]> Date: Wed Apr 22 15:07:55 2015 +0200 language autodetection as requested by my daughter --- debian/lure | 15 ++++++++++++++- debian/lure-of-the-temptress.desktop | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/debian/lure b/debian/lure index d2b500e..8c403f2 100644 --- a/debian/lure +++ b/debian/lure @@ -33,7 +33,20 @@ if [ "$#" -gt "1" ]; then usage exit 1 elif [ "$#" -lt "1" ]; then - /usr/games/scummvm -p /usr/share/scummvm/lure-of-the-temptress/en lure + LURE_LANG=$( + echo $LANGUAGE $LANG en | tr ':' '\n' | cut -c1-2 | while read lang; + do + if [ "$lang" = "en" \ + -o "$lang" = "de" \ + -o "$lang" = "fr" \ + -o "$lang" = "it" \ + -o "$lang" = "es" ]; then + echo $lang + return + fi + done + ) + /usr/games/scummvm -p /usr/share/scummvm/lure-of-the-temptress/$LURE_LANG lure else case "$1" in --help) diff --git a/debian/lure-of-the-temptress.desktop b/debian/lure-of-the-temptress.desktop index 6a505d1..f8d1e74 100644 --- a/debian/lure-of-the-temptress.desktop +++ b/debian/lure-of-the-temptress.desktop @@ -3,7 +3,7 @@ Version=1.0 Name=Lure of the Temptress GenericName=Lure Type=Application -Exec=/usr/games/scummvm -p /usr/share/scummvm/lure-of-the-temptress/en lure +Exec=lure Icon=lure-of-the-temptress Categories=AdventureGame;Game;RolePlaying; Keywords=game;adventure;roleplaying;2D;fantasy; -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/lure-of-the-temptress.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

