Skip to content

Commit

Permalink
Fix defaulting to non-primary language in some cases
Browse files Browse the repository at this point in the history
If the primary language of the system is English, but there is a
secondary language (ie. multiple languages in
QLocale::system().uiLanguages()), then the English locale will not
match any translation files. It will then check the secondary
language, and if that does match a translation file, then that
language will be used instead of English. This issue is fixed
simply by having an English translation file.
  • Loading branch information
scribblemaniac authored and chchwy committed Apr 6, 2022
1 parent d93dc19 commit cbb4adf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/app.pro
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ EXTRA_TRANSLATIONS += \
$$PWD/../translations/pencil_da.ts \
$$PWD/../translations/pencil_de.ts \
$$PWD/../translations/pencil_el.ts \
$$PWD/../translations/pencil_en.ts \
$$PWD/../translations/pencil_es.ts \
$$PWD/../translations/pencil_et.ts \
$$PWD/../translations/pencil_fr.ts \
Expand Down
File renamed without changes.

0 comments on commit cbb4adf

Please sign in to comment.