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

Allow disabling of all translations #5269

Open
2 tasks done
Klaus-Tockloth opened this issue Nov 16, 2024 · 1 comment
Open
2 tasks done

Allow disabling of all translations #5269

Klaus-Tockloth opened this issue Nov 16, 2024 · 1 comment
Assignees
Labels
Internationalisation I18n and support for non-bundled fonts and languages

Comments

@Klaus-Tockloth
Copy link

Klaus-Tockloth commented Nov 16, 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

I want to disable all translations, for example with this code:

	// menu items for 'File' menu entry
	fileQuit := fyne.NewMenuItem(lang.L("Quit"),
		func() {
			slog.Info("user action: activate 'File -> Quit'")
			if isApplicationClosable {
				application.Quit()
			}
		})
	fileMenu := fyne.NewMenu("File", fileQuit)

The code above with German location results in one translated menu entry ("Beenden instead of Quit"):

383860902-d7968d78-f5a5-4da3-bfb1-9ca5bf294ab6

But on a Windows with German (or general non-english) location I only want the non-translated, english menu entry 'Quit':
383526864-532255f1-f73c-4e3a-b642-1cf9a822a29c

How to reproduce

See above.

Screenshots

No response

Example code

See above.

Fyne version

2.5.2

Go compiler version

1.23.3

Operating system and version

Windows

Additional Information

Similar issues:

#5242
#5158

@Klaus-Tockloth Klaus-Tockloth added the unverified A bug that has been reported but not verified label Nov 16, 2024
@andydotxyz
Copy link
Member

Please don't use a bug report to ask a question or request a feature. I have tried to update this to be clearer.

@andydotxyz andydotxyz added Internationalisation I18n and support for non-bundled fonts and languages and removed unverified A bug that has been reported but not verified labels Nov 16, 2024
@andydotxyz andydotxyz changed the title Windows menu: How to avoid /disable any translation? Allow disabling of all translations Nov 16, 2024
@andydotxyz andydotxyz self-assigned this Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internationalisation I18n and support for non-bundled fonts and languages
Projects
None yet
Development

No branches or pull requests

2 participants