mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Add Tranditional Chinese
This commit is contained in:
@@ -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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
BIN
resources/i18n/zh_TW/OrcaSlicer.mo
Normal file
BIN
resources/i18n/zh_TW/OrcaSlicer.mo
Normal file
Binary file not shown.
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user