summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/initfile.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-04-07 18:23:46 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-04-07 19:05:30 +0100
commit0c82b0b28da865ef6e00bf3eb5b61ee614cc2e65 (patch)
tree4d8195b19f69d22af9635987e877895978d98342 /crawl-ref/source/initfile.cc
parent530a45b4cd11299060cf700441a33d06695ee047 (diff)
downloadcrawl-ref-0c82b0b28da865ef6e00bf3eb5b61ee614cc2e65.tar.gz
crawl-ref-0c82b0b28da865ef6e00bf3eb5b61ee614cc2e65.zip
Don't set the default language to system locale for stable versions
Most translations probably aren't ready to be enabled by default.
Diffstat (limited to 'crawl-ref/source/initfile.cc')
-rw-r--r--crawl-ref/source/initfile.cc18
1 files changed, 12 insertions, 6 deletions
diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index 7c0c620e53..4d77222e2c 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -1639,13 +1639,19 @@ game_options::game_options()
lang = LANG_EN;
lang_name = 0;
#ifndef TARGET_OS_WINDOWS
- set_lang(getenv("LC_ALL"))
- || set_lang(getenv("LC_MESSAGES"))
- || set_lang(getenv("LANG"));
+ if (Version::ReleaseType == VER_ALPHA)
+ {
+ set_lang(getenv("LC_ALL"))
+ || set_lang(getenv("LC_MESSAGES"))
+ || set_lang(getenv("LANG"));
+ }
#elif defined USE_TILE_LOCAL
- char ln[30];
- if (GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_SENGLANGUAGE, ln, sizeof(ln)))
- set_lang(ln);
+ if (Version::ReleaseType == VER_ALPHA)
+ {
+ char ln[30];
+ if (GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_SENGLANGUAGE, ln, sizeof(ln)))
+ set_lang(ln);
+ }
#endif
seed = 0;
reset_options();