Commit 67defcb4fa99c0176afffc2049678982ba1fd9fa
1 parent
2c00bbd0f8
Exists in
master
and in
2 other branches
중국어 최적화 진행중 나머지
Showing
2 changed files
with
4 additions
and
0 deletions
Show diff stats
app/gui/oven_control/config.cpp
@@ -26,6 +26,7 @@ | @@ -26,6 +26,7 @@ | ||
26 | #include "system.h" | 26 | #include "system.h" |
27 | #include "unistd.h" | 27 | #include "unistd.h" |
28 | #include "configdemomodedlg.h" | 28 | #include "configdemomodedlg.h" |
29 | +#include <QFontDatabase> | ||
29 | 30 | ||
30 | using namespace Define; | 31 | using namespace Define; |
31 | using namespace System; | 32 | using namespace System; |
@@ -455,6 +456,9 @@ void Config::applyCurrentConfigLanguage() | @@ -455,6 +456,9 @@ void Config::applyCurrentConfigLanguage() | ||
455 | QApplication::installTranslator(trans); | 456 | QApplication::installTranslator(trans); |
456 | } | 457 | } |
457 | else if(configlist.items.language.d32 == 1){ | 458 | else if(configlist.items.language.d32 == 1){ |
459 | + //QFontDatabase::addApplicationFont("/prime/fonts/NotoSansCJKsc-Light.subset.otf"); | ||
460 | + //QFontDatabase::addApplicationFont("/prime/fonts/NotoSansCJKsc-Regular.subset.otf"); | ||
461 | + //qApp->setFont(QFont("/prime/SourceHanSans-Normal.otf")); | ||
458 | qApp->setFont(QFont("Noto Sans CJK SC")); | 462 | qApp->setFont(QFont("Noto Sans CJK SC")); |
459 | QTranslator* trans = new QTranslator(); | 463 | QTranslator* trans = new QTranslator(); |
460 | qDebug() << trans->load(":/lang_zh.qm"); | 464 | qDebug() << trans->load(":/lang_zh.qm"); |
app/gui/oven_control/lang_en.qm
No preview for this file type