Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix defaulting to non-primary language in some cases #1703

Merged
merged 1 commit into from
Apr 6, 2022

Conversation

scribblemaniac
Copy link
Member

@scribblemaniac scribblemaniac commented Mar 30, 2022

This fixes an occasionally complained about, never elaborated upon issue of Pencil2D starting up for the first time with the incorrect language. Fixes #1700. Probably related to #1628.

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.

@chchwy Can you please merge this and handle any changes that may need to be made to Transifex?

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.
@scribblemaniac scribblemaniac added Bug Translation UI Related to the visual appearance of the program 🔹 Minor PR (only one reviewer required) labels Mar 30, 2022
@scribblemaniac scribblemaniac requested a review from chchwy March 30, 2022 02:29
@chchwy chchwy self-assigned this Apr 1, 2022
@chchwy chchwy merged commit cbb4adf into pencil2d:master Apr 6, 2022
@chchwy
Copy link
Member

chchwy commented Apr 6, 2022

Thanks @scribblemaniac. Transifex should be fine.

@chchwy chchwy modified the milestones: v0.6.7, 0.7.0 May 20, 2022
@MrStevns MrStevns modified the milestones: 0.7.0, v0.6.7 Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🔹 Minor PR (only one reviewer required) Translation UI Related to the visual appearance of the program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pencil2d opens in Spanish
3 participants