Initial version of language selector GUI

This commit is contained in:
Berke Viktor
2012-10-18 16:34:40 +02:00
parent 4732505e30
commit 5acd848f79
4 changed files with 22 additions and 4 deletions

View File

@@ -951,6 +951,7 @@ main (int argc, char *argv[])
int ret;
#ifdef WIN32
char hexchat_lang[13]; /* LC_ALL= plus 5 chars of gui_lang and trailing \0 */
HANDLE mutex;
#endif
@@ -971,6 +972,10 @@ main (int argc, char *argv[])
load_config ();
#ifdef WIN32
/* we MUST do this after load_config () otherwise it would fail */
snprintf (hexchat_lang, 12, "LC_ALL=%s", prefs.gui_lang);
putenv (hexchat_lang);
if (prefs.gui_one_instance && !portable_mode ())
{
DWORD error;