diff --git a/src/common/intl.cpp b/src/common/intl.cpp index 17501e421f..1f6f8de543 100644 --- a/src/common/intl.cpp +++ b/src/common/intl.cpp @@ -615,11 +615,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 @@ -655,6 +650,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;