FIX: fix hms display in tr language
JIRA: STUDIO-6743 1. fix display tr luanguage in home page Change-Id: I672d46b1349078ab8e3fc59e124d2f583f09e8e9 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
parent
4e68aef6bc
commit
b364495e7e
|
@ -6317,6 +6317,7 @@ wxString GUI_App::current_language_code_safe() const
|
|||
{ "uk", "uk_UA", },
|
||||
{ "zh", "zh_CN", },
|
||||
{ "ru", "ru_RU", },
|
||||
{ "tr", "tr_TR", },
|
||||
};
|
||||
wxString language_code = this->current_language_code().BeforeFirst('_');
|
||||
auto it = mapping.find(language_code);
|
||||
|
|
|
@ -145,7 +145,12 @@ std::string HMSQuery::hms_language_code()
|
|||
std::string lang_code = wxGetApp().app_config->get_language_code();
|
||||
if (lang_code.compare("uk") == 0
|
||||
|| lang_code.compare("cs") == 0
|
||||
|| lang_code.compare("ru") == 0) {
|
||||
|| lang_code.compare("ru") == 0
|
||||
|| lang_code.compare("tr") == 0
|
||||
|| lang_code.compare("pt") == 0
|
||||
|| lang_code.compare("ko") == 0
|
||||
)
|
||||
{
|
||||
BOOST_LOG_TRIVIAL(info) << "HMS: using english for lang_code = " << lang_code;
|
||||
return "en";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue