Selaa lähdekoodia

Issue 2372 – Some translations (notably Japanese) are not loaded

https://winscp.net/tracker/2372

Source commit: 7f926c8bbade9e34769ed0aef82c75fb321ab0ff
Martin Prikryl 5 kuukautta sitten
vanhempi
sitoutus
0324d45a96
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      source/windows/GUIConfiguration.cpp

+ 2 - 1
source/windows/GUIConfiguration.cpp

@@ -1187,7 +1187,7 @@ TObjectList * __fastcall TGUIConfiguration::GetLocales()
     LCID InvalidLocale = static_cast<LCID>(-1);
 
     // The two-leter Windows code is not actually unique among languages.
-    // To find any duplicities and resolve them to the language, where ISO code also match.
+    // So find any duplicities and resolve them to the language, where ISO code also match.
     // Notably:
     // Georgian KAT ka-GE - Kalaallisut KAL kl-GL
     // Tamil TAI ta-IN - Tajik TAJ tj-TJ
@@ -1229,6 +1229,7 @@ TObjectList * __fastcall TGUIConfiguration::GetLocales()
         TConflicts::const_iterator DefaultLangConflict = DefaultLangConflicts.find(LangExt2);
         // Unless it is a conflicting extension with no resolution or resolved to another locale
         if ((DefaultLangConflict == DefaultLangConflicts.end()) ||
+            (DefaultLangConflict->second.first == 1) ||
             ((DefaultLangConflict->second.second != InvalidLocale) &&
              (DefaultLangConflict->second.second == Locale)))
         {