diff options
author | Adam Moss <moss@lindenlab.com> | 2008-04-17 14:56:00 +0000 |
---|---|---|
committer | Adam Moss <moss@lindenlab.com> | 2008-04-17 14:56:00 +0000 |
commit | 669d1162f4c7529296d7018ec65960f120cc1c3e (patch) | |
tree | 807a035b4ee593587923e040b49bd5a6a8dc42cf /indra/newview/llappviewerwin32.cpp | |
parent | a3f3ab7e113e44309461b26399d627814f0ce4f9 (diff) |
QAR-460 Automatic XUI selection & Kick-ass Linux Fonts MergeMe
svn merge svn+ssh://svn.lindenlab.com/svn/linden/release@84983
svn+ssh://svn.lindenlab.com/svn/linden/branches/moss/fontconfig-merge1
Diffstat (limited to 'indra/newview/llappviewerwin32.cpp')
-rw-r--r-- | indra/newview/llappviewerwin32.cpp | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/indra/newview/llappviewerwin32.cpp b/indra/newview/llappviewerwin32.cpp index 3770fe2a33..fed538da37 100644 --- a/indra/newview/llappviewerwin32.cpp +++ b/indra/newview/llappviewerwin32.cpp @@ -54,6 +54,7 @@ #include "llviewernetwork.h" #include "llmd5.h" +#include "llfindlocale.h" #include "llcommandlineparser.h" @@ -385,7 +386,28 @@ bool LLAppViewerWin32::initHardwareTest() bool LLAppViewerWin32::initParseCommandLine(LLCommandLineParser& clp) { - return clp.parseCommandLineString(mCmdLine); + if (!clp.parseCommandLineString(mCmdLine)) + { + return false; + } + + // Find the system language. + FL_Locale *locale = NULL; + FL_Success success = FL_FindLocale(&locale, FL_MESSAGES); + if (success != 0) + { + if (success >= 2 && locale->lang) // confident! + { + LLControlVariable* c = gSavedSettings.getControl("SystemLanguage"); + if(c) + { + c->setValue(std::string(locale->lang), false); + } + } + FL_FreeLocale(&locale); + } + + return true; } void LLAppViewerWin32::handleSyncCrashTrace() |