mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-06-20 14:10:59 +10:00
Fix the obtain of locale resource. (Capability Names)
This commit is contained in:
+1
-1
@@ -269,7 +269,7 @@ std::string GetSuitableLanguageValue (const std::map <std::nstring, std::string>
|
|||||||
if (map.empty ()) return "";
|
if (map.empty ()) return "";
|
||||||
std::string ret = GetSuitableLanguageValue (map, pugi::as_utf8 (GetComputerLocaleCodeW ()));
|
std::string ret = GetSuitableLanguageValue (map, pugi::as_utf8 (GetComputerLocaleCodeW ()));
|
||||||
if (ret.empty ()) ret = GetSuitableLanguageValue (map, "en-US");
|
if (ret.empty ()) ret = GetSuitableLanguageValue (map, "en-US");
|
||||||
if (ret.empty ()) ret = map.begin ()->second;
|
//if (ret.empty ()) ret = map.begin ()->second;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
struct xmldoc
|
struct xmldoc
|
||||||
|
|||||||
Reference in New Issue
Block a user