Using default language as transliteration source if there is no other mwm languages available.

This commit is contained in:
Daria Volvenkova 2017-03-23 01:38:38 +03:00
parent 4e18573402
commit 955d43ea1e

View file

@ -49,6 +49,8 @@ void GetTransliteratedName(feature::RegionData const & regionData, StringUtf8Mul
return;
}
}
if (!mwmLangCodes.empty() && src.GetString(StringUtf8Multilang::kDefaultCode, srcName))
out = Transliterate(srcName, StringUtf8Multilang::GetLangEnNameByCode(mwmLangCodes[0]));
}
void GetBestName(StringUtf8Multilang const & src, vector<int8_t> const & priorityList, string & out)