Add Tranditional Chinese

This commit is contained in:
SoftFever 2023-08-31 20:35:15 +08:00
parent a63ddc33e2
commit 0b7b606881
3 changed files with 10 additions and 0 deletions

View file

@ -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"
}
]
},

Binary file not shown.

View file

@ -6,6 +6,7 @@
#include "MsgDialog.hpp"
#include "I18N.hpp"
#include "libslic3r/AppConfig.hpp"
#include <wx/language.h>
#include <wx/notebook.h>
#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,