You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
If I WANT english language and I do have an OS (Windows in my case) set to REGION="Sweden" I end up with TWO Quit menus...
One Quit in an English OS and two Quit -> English "Quit" (mine) and a Swedish "Avsluta" on an non-English (Region #English) OS...
The temporary solution is to remove the file https://github.com/fyne-io/fyne/tree/master/lang/translations/base.sv.json from fyne. Or set "Region" to English/UK, etc.
A suggested permanent solution would be to add a function to the lang package to be able to control what language the application is supposed to be using!!! Then I could even have a multilanguage-controlling menu! :-)
Suggestion:
lang.SetLanguage("en") or lang.SetLanguage("sv") etc...
How to reproduce
Go to (on Windows 11) Start->Settings->Time & language and set "Region" ->"Swedish"
add code that adds an "Quit" (english) menu.
You end up with 2 Quit...
Screenshots
No response
Example code
func BuildFileMenu(window fyne.Window) *fyne.Menu {
// a quit item will be appended to our first menu
mFile := fyne.NewMenu("File",
fyne.NewMenuItem("Quit", func() {
window.Close()
os.Exit(1)
}))
Checklist
Describe the bug
If I WANT english language and I do have an OS (Windows in my case) set to REGION="Sweden" I end up with TWO Quit menus...
One Quit in an English OS and two Quit -> English "Quit" (mine) and a Swedish "Avsluta" on an non-English (Region #English) OS...
The temporary solution is to remove the file https://github.com/fyne-io/fyne/tree/master/lang/translations/base.sv.json from fyne. Or set "Region" to English/UK, etc.
A suggested permanent solution would be to add a function to the lang package to be able to control what language the application is supposed to be using!!! Then I could even have a multilanguage-controlling menu! :-)
Suggestion:
lang.SetLanguage("en") or lang.SetLanguage("sv") etc...
How to reproduce
Screenshots
No response
Example code
func BuildFileMenu(window fyne.Window) *fyne.Menu {
// a quit item will be appended to our first menu
mFile := fyne.NewMenu("File",
fyne.NewMenuItem("Quit", func() {
window.Close()
os.Exit(1)
}))
Fyne version
[email protected]
Go compiler version
go1.22.1 windows/amd64
Operating system and version
Windows 11 Home with REGION set to "Sweden"
Additional Information
No response
The text was updated successfully, but these errors were encountered: