summaryrefslogtreecommitdiffstats
path: root/src/common/global.h
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2012-12-14 11:17:42 +0100
committerDidier Raboud <odyx@debian.org>2012-12-14 15:17:23 +0100
commit6946155a5686f19a62157af00746f834bec47448 (patch)
tree34985f9fb7e25509a14599edd9f8f3c0cfbab6ee /src/common/global.h
parent2173e86025f03cc19af833f99c786391bd32718e (diff)
downloadcolobot-6946155a5686f19a62157af00746f834bec47448.tar.gz
colobot-6946155a5686f19a62157af00746f834bec47448.tar.bz2
colobot-6946155a5686f19a62157af00746f834bec47448.zip
Inherit translation setting from environment.
This ensures that users with a correctly-defined locale don't need to explicitely set the locale. - By dropping the setlocale content, it fixes the loading of translations. - Add a Debug log message to check what is put in the environment.
Diffstat (limited to 'src/common/global.h')
-rw-r--r--src/common/global.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/global.h b/src/common/global.h
index 9704a2b..579db7d 100644
--- a/src/common/global.h
+++ b/src/common/global.h
@@ -29,6 +29,7 @@
*/
enum Language
{
+ LANGUAGE_ENV = -1,
LANGUAGE_ENGLISH = 0,
LANGUAGE_FRENCH = 1,
LANGUAGE_GERMAN = 2,