Fix the obtain of locale resource. (Capability Names)

This commit is contained in:
Bruce
2026-04-11 16:17:03 +08:00
parent 8227689e6a
commit 7552ffed35

View File

@@ -269,7 +269,7 @@ std::string GetSuitableLanguageValue (const std::map <std::nstring, std::string>
if (map.empty ()) return "";
std::string ret = GetSuitableLanguageValue (map, pugi::as_utf8 (GetComputerLocaleCodeW ()));
if (ret.empty ()) ret = GetSuitableLanguageValue (map, "en-US");
if (ret.empty ()) ret = map.begin ()->second;
//if (ret.empty ()) ret = map.begin ()->second;
return ret;
}
struct xmldoc