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

Is it possible to create the sensors with names by default in English? #497

Closed
h3llrais3r opened this issue Dec 29, 2024 · 8 comments
Closed
Labels
enhancement New feature or request translations

Comments

@h3llrais3r
Copy link

It seems that my sensors are being created with Dutch names when adding the integration.
Is it using it from my local settings, or is it using the language from my skoda profile to determine the language?
Is it possible to force them in English instead?
I don't like a mix of the sensor names in different languages.
I rather use translations for the friendly names, not for the real sensor names.

@h3llrais3r
Copy link
Author

h3llrais3r commented Dec 29, 2024

It seems that if I remove the nl.json file from the translations folder, it doesn't create the sensors in Dutch, but in English.
Not sure this is the best way?
Should I put back the translations file after that the sensors are create?

EDIT: putting the translations file back after the sensors are created, restores the friendy name translations, so we shoud definitely put it back.😉
We just have to keep in mind that every time there is an update, and some sensors are added, you have to remove your translation file first.

@korttoma
Copy link

korttoma commented Dec 30, 2024

I was also surprised to see that all entities have Swedish names for me. I agree with @h3llrais3r on this. I don't like sensor names mixed in different languages, English names is to be preferred.
Makes it easier also if I want to report a bug for a particular sensor if the name of the sensors have the same name for everyone.

For example, for me it looks like the sensor called "climate.skoda_octavia_combi_tillsatsvarmare" is not working at all. How can the developer or other users know what sensor that is if they are using a different language?

@WebSpider WebSpider added the enhancement New feature or request label Dec 30, 2024
@WebSpider
Copy link
Contributor

This is a side-effect from making the integration fully translated from the start that we have not looked into.
Personally, I like the feature, but think the default should be English, with local names being configurable.

I wouldn't mind a PR that makes that a reality.

@WebSpider
Copy link
Contributor

#502 makes some preparations for this

@WebSpider
Copy link
Contributor

Looking at the HA documentation, changing this is possible, but a bit tedious. I will have a go at it somewhere this month.

@WebSpider
Copy link
Contributor

I've looked into this and asked some questions to the HomeAssistant developers.

Short: This is expected behaviour from HA, and considered a feature by HA. An integration cannot change this.
If you want the entity id's to be created in English, you should set the HA system language to English, and the UI language of your useraccount to your native language.

Settings > System > General changes the system language (which is what the entity ids will be created in by default)
Profile > General changes the UI language (which is what the entity names will be created in for you)

@h3llrais3r
Copy link
Author

Settings > System > General changes the system language (which is what the entity ids will be created in by default)
Profile > General changes the UI language (which is what the entity names will be created in for you)

If this is working, it would be great. For now both are put in Dutch, so that might be the reason.
Going to try this out and keep you posted.

@h3llrais3r
Copy link
Author

h3llrais3r commented Jan 14, 2025

@WebSpider Thanks for this great tip, as it works as expected. (I just removed the integration, adapted the settings and added the integration again and all sensors were in English) 👍

To conclude:

  • If you want all your sensors to be created by default in English, you have to put the system language to 'en'.
    Settings > System > General changes the system language
  • To have your UI in a specific language (f.e. Dutch), you put your user profile language to that language (f.e. 'nl').
    Profile > General changes the UI language

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request translations
Projects
None yet
Development

No branches or pull requests

3 participants