Package: widelands
Version: 1:15-2
Tags: patch

from upstream:
https://bugs.launchpad.net/widelands/+bug/563285

"On Linux:

$ locale
lang=de...@euro
LC_CTYPE="de...@euro"
LC_NUMERIC="de...@euro"
LC_TIME="de...@euro"
LC_COLLATE=C
LC_MONETARY="de...@euro"
LC_MESSAGES="de...@euro"
LC_PAPER="de...@euro"
LC_NAME="de...@euro"
LC_ADDRESS="de...@euro"
LC_TELEPHONE="de...@euro"
LC_MEASUREMENT="de...@euro"
LC_IDENTIFICATION="de...@euro"
LC_ALL=

$ locale -a
C
POSIX
de_DE
de_DE.iso88591
de_de.iso885...@euro
de...@euro
deutsch
en_US
en_US.iso88591
en_US.utf8
german

If I select "Deutsch" in widelands menu, it doesn't work. Setting
language="de...@euro" or language="de_DE" in ยจ/.widelands/config it
works.

This happened a couple of times now for people on IRC.
I guess we need to try a few text domains for languages with different
countries (e.g. for de we should try at least de, de_DE, de_CH and
de_AT)."


This has been fixed in commit 5432:
http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/revision/5432

Thanks,
Scott Howard


Patch:
=== modified file 'src/i18n.cc'
--- src/i18n.cc 2010-06-05 17:22:32 +0000
+++ src/i18n.cc 2010-06-18 16:21:29 +0000
@@ -139,7 +139,7 @@
                        lang = l;
        /* Than set the variables */
        setenv ("LANG",     lang.c_str(), 1);
-       setenv ("LANGUAGE", (lang + ":" + lang.substr(0, 2)).c_str(), 1);
+       setenv ("LANGUAGE", lang.c_str(), 1);
        log
                ("LANG %s, LANGUAGE %s\n",
                lang.c_str(),



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to