Commit 0947f867a61aee07071e2cd9dc7a54d1fb8d5a87

Authored by Peter Zhigalov
1 parent 8ffdf90c

Более канонично сконструировал QTranslator

Showing 1 changed file with 1 additions and 1 deletions
src_qt/mainwindow.cpp
... ... @@ -672,7 +672,7 @@ void MainWindow::update_translations(QString language)
672 672 static QTranslator translator;
673 673 if(!translator.isEmpty())
674 674 qApp->removeTranslator(&translator);
675   - translator.load(QString(":/l10ns/fem_draw_qt_%1").arg(language));
  675 + translator.load(QLocale(language), "fem_draw_qt", "_", ":/l10ns");
676 676 qApp->installTranslator(&translator);
677 677 ui->retranslateUi(this);
678 678  
... ...