Skip to content

Commit

Permalink
FIX: fix hms display in tr language
Browse files Browse the repository at this point in the history
JIRA: STUDIO-6743

1. fix display tr luanguage in home page

Change-Id: I672d46b1349078ab8e3fc59e124d2f583f09e8e9
Signed-off-by: Stone Li <[email protected]>
  • Loading branch information
StoneLiBambulab authored and lanewei120 committed Apr 8, 2024
1 parent 4e68aef commit b364495
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/slic3r/GUI/GUI_App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
7 changes: 6 additions & 1 deletion src/slic3r/GUI/HMS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit b364495

Please sign in to comment.