Skip to content

Commit 9161dc0

Browse files
committed
fix: Multi-language switch failure bug after make install
1 parent c8b1c8c commit 9161dc0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

WinSetting.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ void WinSetting::onComboBoxLanguage(int index)
618618
{
619619
QString language(QLocale().name());
620620
language = ui->comboBoxLanguage->itemData(index).toString();
621-
bool ok = m_trans->load("./" + language + ".qm");
622-
// qDebug()<< "---------@1--->" << language << ok ;
621+
bool ok = m_trans->load("/usr/share/NetSpeed/translations/" + language + ".qm"); // /usr/share/NetSpeed/translations/
622+
// qDebug()<< "----@1--->" << "/usr/share/NetSpeed/translations/" + language + ".qm" << ok ;
623623
QCoreApplication::installTranslator(m_trans);
624624
}
625625

0 commit comments

Comments
 (0)