Skip to content

Commit

Permalink
🔥 revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu committed May 31, 2024
1 parent 940289a commit 677dee6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions desktop/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ Ui::Ui(QObject* parent) : QObject(parent) {
loadSettings();
m_uiEngine = new QQmlEngine(this);
m_translator = new QTranslator(this);
auto locale = QLocale::system();
auto language = locale.name();
if (language.startsWith("zh")) m_language = "zh_CN";
else m_language = "en_US";
auto ok = m_translator->load(QString(":/resources/i18n/%1.qm").arg(m_language));
if (!ok) {
qWarning() << "failed to load translator";
Expand Down

0 comments on commit 677dee6

Please sign in to comment.