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

Fall back to English if there is no sensible match #5043

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

andydotxyz
Copy link
Member

Fixes #5040

Checklist:

  • Tests included.
  • Lint and formatter run with no errors.
  • Tests all pass.

@coveralls
Copy link

coveralls commented Jul 30, 2024

Coverage Status

coverage: 66.031% (-0.02%) from 66.046%
when pulling 000e2ed on andydotxyz:fix/5040
into 49ad989 on fyne-io:release/v2.5.x.

andydotxyz added a commit that referenced this pull request Jul 30, 2024
@andydotxyz
Copy link
Member Author

andydotxyz commented Jul 31, 2024 via email

@Sharrnah
Copy link
Contributor

Sharrnah commented Aug 1, 2024

maybe #5026 could work? I added English as a default but it can be changed by the app developer in case the app itself has no english translation?

I am just not 100% sure about the function names in my PR and if how i do it is even considered okay.


I am even not sure if we really want to add fyne included translations at all.
Since i think we can be quite sure that an App will have its own strings anyway, so relying on fyne included translations will fail with missing translations.

Question then is, how to handle apps that do have no translation pack at all. As then we definetly need to add the fyne core translation packs. 🤔

@dweymouth
Copy link
Contributor

maybe #5026 could work? I added English as a default but it can be changed by the app developer in case the app itself has no english translation?

I am just not 100% sure about the function names in my PR and if how i do it is even considered okay.

I am even not sure if we really want to add fyne included translations at all. Since i think we can be quite sure that an App will have its own strings anyway, so relying on fyne included translations will fail with missing translations.

Question then is, how to handle apps that do have no translation pack at all. As then we definetly need to add the fyne core translation packs. 🤔

#5026 has to wait for Fyne 2.6, being a change that introduces new public APIs. So we do need this or a similar no-api fix in the meantime

@andydotxyz andydotxyz merged commit 17e9d03 into fyne-io:release/v2.5.x Aug 1, 2024
12 checks passed
@andydotxyz andydotxyz deleted the fix/5040 branch August 1, 2024 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants