mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
[core] Fix local language not being used in some cases
Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
@@ -191,6 +191,11 @@ std::string GetCurrentMapLanguage()
|
||||
std::vector<int8_t> GetPreferredLangIndexes()
|
||||
{
|
||||
std::vector<int8_t> langs = {};
|
||||
|
||||
auto const mapLang = StringUtf8Multilang::GetLangIndex(languages::GetCurrentMapLanguage());
|
||||
if (mapLang != StringUtf8Multilang::kUnsupportedLanguageCode)
|
||||
langs.push_back(mapLang);
|
||||
|
||||
for (auto const & systemLanguage : GetSystemPreferred())
|
||||
{
|
||||
auto normalizedLang = Normalize(systemLanguage);
|
||||
|
||||
Reference in New Issue
Block a user