set LANG alias (can still be overriden via saved.cfg etc.)

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6254 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
sireus
2011-04-16 12:50:10 +00:00
parent 9816097d9c
commit b03adbc87f
+6 -1
View File
@@ -10,7 +10,12 @@ i18nmanager::i18nmanager(const char *domain, const char *basepath) : domain(doma
textdomain(domain);
bind_textdomain_codeset(domain, "UTF-8"); // we use the utf-8 charset only
printf("current locale: %s\n", locale);
char lang[3];
copystring(lang, locale, 3);
filterlang(lang, lang);
alias("LANG", lang);
printf("current locale: %s (%s)\n", locale, lang);
}
// export gettext to cubescript