diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 745cff6944..8a77c3d522 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -629,11 +629,6 @@ inline bool wxGetNonEmptyEnvVar(const wxString& name, wxString* value) return wxLANGUAGE_ENGLISH_US; } - if ( langFull == wxS("C") || langFull == wxS("POSIX") ) - { - // default C locale is English too - return wxLANGUAGE_ENGLISH_US; - } #endif // the language string has the following form @@ -669,6 +664,12 @@ inline bool wxGetNonEmptyEnvVar(const wxString& name, wxString* value) langFull.Truncate(posEndLang); } + if ( langFull == wxS("C") || langFull == wxS("POSIX") ) + { + // default C locale is English too + return wxLANGUAGE_ENGLISH_US; + } + // do we have just the language (or sublang too)? const bool justLang = langFull.find('_') == wxString::npos;