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

Quick Search: Forced capitalization creates spelling mistake in translations #22832

Open
NoRi2909 opened this issue Nov 15, 2024 · 0 comments
Open

Comments

@NoRi2909
Copy link
Contributor

NoRi2909 commented Nov 15, 2024

Describe the issue you are experiencing

The Quick Search dialog has three types of actions the user can access:

"types": {
"reload": "Reload",
"navigation": "Navigate",
"server_control": "Server"

These can be translated in all languages, so in German "Reload" becomes "Neu laden".

Unfortunately the code capitalizes these strings so we get this:

Screenshot 2024-11-15 09 57 32

In German "Laden" is a store, so this looks quite silly.

The same problem is caused on the right side in a few strings where lowercase words are present. Here the German strings is actually "Manuell konfig. MQTT-Entitäten", but the code turns the "k" into "K".

Same problem with the two server commands at the bottom of the list:

Screenshot 2024-11-15 10 10 48

Here I already changed the German translations to "neu laden" and "stoppen", but this won't get into effect with the forced Titlecase here, too.

Describe the behavior you expected

As the English words need no forced capitalization either (they already are in the strings) this should be removed in code. I assume that for the text on the right there also no need to force all words into Title strings.

What version of Home Assistant Core has the issue?

core-2024.11.1

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

No branches or pull requests

1 participant