mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-26 06:20:39 -08:00
i18n: after generating *.qm files, make it work in interpreted app too (testing)
This commit is contained in:
parent
d329357550
commit
090482a7ec
3 changed files with 5 additions and 3 deletions
|
|
@ -97,7 +97,8 @@ int main(int argc, char* argv[]) {
|
|||
}
|
||||
|
||||
QTranslator translator;
|
||||
if (translator.load(QLocale(), QString(), QString(), ":/i18n")) {
|
||||
if ((QFile::exists("i18n") && translator.load(QLocale(), QString(), QString(), "i18n"))
|
||||
|| translator.load(QLocale(), QString(), QString(), ":/i18n")) {
|
||||
QCoreApplication::installTranslator(&translator);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue