diff --git a/localazy.json b/localazy.json index 7bd86e4f84..723183486c 100644 --- a/localazy.json +++ b/localazy.json @@ -53,6 +53,11 @@ "type": "po", "pattern": "localization/i18n/ru/OrcaSlicer_ru.po", "lang": "ru" + }, + { + "type": "po", + "pattern": "localization/i18n/zh_TW/OrcaSlicer_zh_TW.po", + "lang": "zh_TW" } ] }, diff --git a/resources/i18n/zh_TW/OrcaSlicer.mo b/resources/i18n/zh_TW/OrcaSlicer.mo new file mode 100644 index 0000000000..ab52e04e78 Binary files /dev/null and b/resources/i18n/zh_TW/OrcaSlicer.mo differ diff --git a/src/slic3r/GUI/Preferences.cpp b/src/slic3r/GUI/Preferences.cpp index b6a53fa4df..e50a677385 100644 --- a/src/slic3r/GUI/Preferences.cpp +++ b/src/slic3r/GUI/Preferences.cpp @@ -6,6 +6,7 @@ #include "MsgDialog.hpp" #include "I18N.hpp" #include "libslic3r/AppConfig.hpp" +#include #include #include "Notebook.hpp" #include "OG_CustomCtrl.hpp" @@ -112,6 +113,9 @@ wxBoxSizer *PreferencesDialog::create_item_language_combobox( if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_CHINESE_SIMPLIFIED)) { language_name = wxString::FromUTF8("\xe4\xb8\xad\xe6\x96\x87\x28\xe7\xae\x80\xe4\xbd\x93\x29"); } + else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_CHINESE)) { + language_name = wxString::FromUTF8("\xe4\xb8\xad\xe6\x96\x87\x28\xe7\xb9\x81\xe4\xbd\x93\x29"); + } else if (vlist[i] == wxLocale::GetLanguageInfo(wxLANGUAGE_SPANISH)) { language_name = wxString::FromUTF8("\x45\x73\x70\x61\xc3\xb1\x6f\x6c"); } @@ -928,6 +932,7 @@ wxWindow* PreferencesDialog::create_general_page() wxLanguage supported_languages[]{ wxLANGUAGE_ENGLISH, wxLANGUAGE_CHINESE_SIMPLIFIED, + wxLANGUAGE_CHINESE, wxLANGUAGE_GERMAN, wxLANGUAGE_CZECH, wxLANGUAGE_FRENCH,