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

Dutch translation is incomplete #248

Closed
BebeMischa opened this issue Jan 9, 2023 · 4 comments
Closed

Dutch translation is incomplete #248

BebeMischa opened this issue Jan 9, 2023 · 4 comments

Comments

@BebeMischa
Copy link
Contributor

BebeMischa commented Jan 9, 2023

Thanks for all the work on the integration.

Today I have updated to 2.0.1.

As I use the YAML way, I had to change a lot of my code, but got it working fine.

Only problem I see is, that humidex_perception does not translate on dashboard. My HA language is Dutch, but the sensor shows up in English. I see here on github, that a Dutch translation is present.

Previous version worked fine.

This is my configuration.yaml:

#Thermal comfort
thermal_comfort:
  - custom_icons: true # global option for the entry
    sensor:
      - name: woonkamerdauw
        unique_id: woonkamerdauw1
        temperature_sensor: sensor.fibaro_eye_woon_air_temperature
        humidity_sensor: sensor.humidity
        sensor_types:
          - dew_point
          - humidex_perception
      - name: slaapkamerdauw
        unique_id: slaapkamerdauw1
        temperature_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_air_temperature
        humidity_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_humidity
        sensor_types:
          - humidex_perception
      - name: terrasdauw
        unique_id: terrasdauw1
        temperature_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_air_temperature_2
        humidity_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_humidity_2
        sensor_types:
          - humidex_perception
      - name: baddauw1
        unique_id: baddauw
        temperature_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_air_temperature_4
        humidity_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_humidity_4
        sensor_types:
          - humidex_perception
      - name: keukendauw
        unique_id: keukendauw1
        temperature_sensor: sensor.fibaro_eye_keukentafel_air_temperature
        humidity_sensor: sensor.humidity
        sensor_types:
          - humidex_perception
      - name: simcavedauw
        unique_id: simcavedauw1
        temperature_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_air_temperature_3
        humidity_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_humidity_3
        sensor_types:
          - humidex_perception
      - name: opslagdauw
        unique_id: opslagdaw1
        temperature_sensor: sensor.aeotec_humitemp_opslag_air_temperature
        humidity_sensor: sensor.aeotec_humitemp_opslag_humidity
        sensor_types:
          - humidex_perception
      - name: schuurdauw
        unique_id: schuurdauw1
        temperature_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_air_temperature_5
        humidity_sensor: sensor.aerq_temperature_and_humidity_sensor_v2_0_humidity_5
        sensor_types:
          - humidex_perception

Should I change something more or there is some bug?

Thank you very much in advance

Mischa

PS sorry, but whatever I do, the code won't display correctly...

@rautesamtr rautesamtr changed the title Language translation not working in 2.0.1 Dutch translation is incomplete Jan 9, 2023
@rautesamtr
Copy link
Collaborator

@BebeMischa
Copy link
Contributor Author

BebeMischa commented Jan 9, 2023

Can I help with update? If so, how would I do it?

@rautesamtr
Copy link
Collaborator

Can I help with update?

That would be great.

If so, how would I do it?

You can go to https://github.com/dolezsa/thermal_comfort/blob/master/custom_components/thermal_comfort/translations/nl.json
and press the litle pencil icon to edit the file and make a pull request. Or you can just post your translations here and i add them.

You can copy parts from the english translation: https://github.com/dolezsa/thermal_comfort/blob/78cb2ae9f78ea2e45dbdf55cb288d93af97f09af/custom_components/thermal_comfort/translations/en.json and add them to the nl.json and translate the values.

The format of the file should be pretty self explanatory, but if you have questions just ask.
The first parts like option and config are for the frontend. entity -> sensor -> sensor_name -> state are for the states of the sensors.

@BebeMischa
Copy link
Contributor Author

BebeMischa commented Jan 9, 2023 via email

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

2 participants