Skip to content

Commit

Permalink
i18n: use qt6 dir to look for translations in main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
charliewolf committed Aug 17, 2023
1 parent efd7e75 commit df79117
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,13 @@ void loadTranslations(QTranslator *translator, const QString &locale) {
loadTranslation(translator[5], appPath + "/languages/QOwnNotes_" + locale);
loadTranslation(translator[6], appPath + "/QOwnNotes_" + locale);
loadTranslation(translator[7], "../src/languages/QOwnNotes_" + locale);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
loadTranslation(translator[8], "../share/qt6/translations/QOwnNotes_" + locale);
loadTranslation(translator[9], appPath + "/../share/qt6/translations/QOwnNotes_" + locale);
#else
loadTranslation(translator[8], "../share/qt5/translations/QOwnNotes_" + locale);
loadTranslation(translator[9], appPath + "/../share/qt5/translations/QOwnNotes_" + locale);
#endif
loadTranslation(translator[10], "QOwnNotes_" + locale);
}

Expand Down

0 comments on commit df79117

Please sign in to comment.