StelTranslator.cpp   StelTranslator.cpp 
skipping to change at line 70 skipping to change at line 70
{ {
char* lang = getenv("LANGUAGE"); char* lang = getenv("LANGUAGE");
if (lang) systemLangName = lang; if (lang) systemLangName = lang;
else else
{ {
lang = getenv("LANG"); lang = getenv("LANG");
if (lang) systemLangName = lang; if (lang) systemLangName = lang;
else else
{ {
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
char cc[3]; char ulng[3], ctry[3];
if (GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SISO63 if (GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SISO63
9LANGNAME, cc, 3)) 9LANGNAME, ulng, 3))
{ {
cc[2] = '\0'; ulng[2] = '\0';
systemLangName = cc; if (GetLocaleInfo(LOCALE_USER_DEFAULT, LOCAL
E_SISO3166CTRYNAME, ctry, 3))
{
ctry[2] = '\0';
systemLangName = QString("%1_%2").ar
g(ulng).arg(ctry);
}
else
{
systemLangName = ulng;
}
} }
else else
{ {
systemLangName = "C"; systemLangName = "C";
} }
#else #else
systemLangName = "C"; systemLangName = "C";
#endif #endif
} }
} }
 End of changes. 2 change blocks. 
5 lines changed or deleted 15 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/