Skip to content

Commit

Permalink
i18n: better approach to load translations
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Aug 26, 2023
1 parent 248f889 commit e927708
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main(int argc, char *argv[])
#else
qmDir = QT_STRINGIFY(QM_FILE_INSTALL_DIR);
#endif
if (translator.load(QString("PineapplePictures_%1").arg(QLocale::system().name()), qmDir)) {
if (translator.load(QLocale(), QLatin1String("PineapplePictures"), QLatin1String("_"), qmDir)) {
a.installTranslator(&translator);
}
a.setApplicationName("Pineapple Pictures");
Expand Down

0 comments on commit e927708

Please sign in to comment.