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

Per app language settings not working on recent macOS versions #5277

Open
2 tasks done
sdassow opened this issue Nov 20, 2024 · 3 comments
Open
2 tasks done

Per app language settings not working on recent macOS versions #5277

sdassow opened this issue Nov 20, 2024 · 3 comments
Labels
unverified A bug that has been reported but not verified

Comments

@sdassow
Copy link
Contributor

sdassow commented Nov 20, 2024

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

In recent versions of macOS a language can be chosen per app. Fyne does not seem to support this yet, and in fact it does require support from the application.

How to reproduce

  1. Install any Fyne app that supports more than one language
  2. Go to SystemSettings -> General -> Language & Region -> Applications
  3. Click "+" and select installed Fyne app

Screenshots

Screenshot 2024-11-20 at 00 57 22

Example code

Any installed Fyne app shows this.

Fyne version

develop

Go compiler version

go1.23.3 darwin/amd64

Operating system and version

macOS Sonoma (14.7.1)

Additional Information

Simply creating lproj directories in Contents/Resources/ makes the languages appear, but when selected the app still doesn't localize. Maybe some additional API needs to be called?

The directory format for localization is mentioned here: https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html

@sdassow sdassow added the unverified A bug that has been reported but not verified label Nov 20, 2024
@sdassow
Copy link
Contributor Author

sdassow commented Nov 20, 2024

Found something that seems related: tumic0/GPXSee#474
As I understand instead of the .lproj directories it can be done via plist: tumic0/GPXSee@2549204

@sdassow
Copy link
Contributor Author

sdassow commented Nov 20, 2024

With both PRs referenced above applied it looks like the following in macOS settings, and the app gets the preference too:
Screenshot 2024-11-20 at 22 24 46

@sdassow
Copy link
Contributor Author

sdassow commented Nov 20, 2024

Sort of related, and maybe a useful keyword at some point in the future: CFBundleDevelopmentRegion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unverified A bug that has been reported but not verified
Projects
None yet
Development

No branches or pull requests

1 participant