-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
Help Wanted: Add more translations #54
Comments
Hi i can help with polish language. Which files need to be translated? |
Excellent. Thank you very much! The file that needs translation is this one: The file contains a bunch of key-value pairs, but only the value strings need to be translated. For each language, a new file should be created You can either create a PR, or just post the translations here, either is fine. I appreciated the help. |
I am sending the file in attachment. I would also need to be able to
translate words such as: off, horizontal, vertical, both; low, medium,
high, auto.
wt., 21 lis 2023 o 17:11 Tucker Kern ***@***.***> napisał(a):
… Excellent. Thank you very much!
The file that needs translation is this one:
https://github.com/mill1000/midea-ac-py/blob/main/custom_components/midea_ac/translations/en.json
The file contains a bunch of key-value pairs, but only the value strings
need to be translated.
For each language, a new file should be created XX.json where XX is the language
tag <https://en.wikipedia.org/wiki/IETF_language_tag>. For Polish it
would be pl.json.
You can either create a PR, or just post the translations here, either is
fine.
I appreciated the help.
—
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNK2AK7SJQ3D5GVTWLZKG3YFTHB5AVCNFSM6AAAAAA7TIT4FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRGIZDINBRGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hey @Theo16 I don't think email attachments come through on Github. You'll probably have to attach it to a comment manually.
I thought this wasn't possible but upon reviewing the docs it may be but I'll have to run some tests |
I figured out how to enable translations of swing modes and fan speeds. See #55 The following additional values need to be translated "entity": {
"climate": {
"midea_ac": {
"state_attributes": {
"fan_mode": {
"state": {
"Silent": "Silent",
"Low": "Low",
"Medium": "Medium",
"High": "High",
"Auto": "Auto",
"Custom": "Custom"
}
},
"swing_mode": {
"state": {
"Off": "Off",
"Vertical": "Vertical",
"Horizontal": "Horizontal",
"Both": "Both"
}
}
}
}
}
} |
Spanish ( "entity": {
"climate": {
"midea_ac": {
"state_attributes": {
"fan_mode": {
"state": {
"Silent": "Silencioso",
"Low": "Bajo",
"Medium": "Medio",
"High": "Alto",
"Auto": "Automático"
}
},
"swing_mode": {
"state": {
"Off": "Apagado",
"Vertical": "Vertical",
"Horizontal": "Horizontal",
"Both": "Ambos"
}
}
}
}
} |
Also Catalan ( "entity": {
"climate": {
"midea_ac": {
"state_attributes": {
"fan_mode": {
"state": {
"Silent": "Silenciós",
"Low": "Baix",
"Medium": "Mitjà",
"High": "Alt",
"Auto": "Automàtic"
}
},
"swing_mode": {
"state": {
"Off": "Apagat",
"Vertical": "Vertical",
"Horizontal": "Horitzontal",
"Both": "Ambdós"
}
}
}
}
} |
PL:
{
"config": {
"step": {
"user": {
"description": "Wybierz w jaki sposób dodać urządzenie.",
"menu_options": {
"discover": "Znajdź urządzenie",
"manual": "Skonfiguruj ręcznie"
}
},
"discover": {
"data": {
"host": "Host (IP)"
},
"description": "Pozostaw host(IP) pusty, aby znaleźć urządzenia w
sieci."
},
"manual": {
"description": "Podaj dane Twojego urządzenia.",
"data": {
"id": "ID",
"host": "Host (IP)",
"port": "Port",
"token": "Token",
"k1": "Klucz"
},
"data_description": {
"token": "Token dla urządzeń w wersji V3",
"k1": "Klucz dla urządzeń w wersji V3"
}
}
},
"abort": {
"already_configured": "To urządzenie zostało już skonfigurowane.",
"cannot_connect": "Nie udało się nawiązać połączenia.",
"no_devices_found": "Nie znaleziono wspieranego urządzenia w sieci."
},
"error": {
"cannot_connect": "Nie udało się nawiązać połączenia z tymi
ustawieniami.",
"device_not_found": "Nie znaleziono urządzenia w sieci.",
"unsupported_device": "Urządzenie nie jest wspierane."
}
},
"options": {
"step": {
"init": {
"data": {
"prompt_tone": "Włącz sygnał dźwiękowy",
"temp_step": "Krok nastawy temperatury",
"use_fan_only_workaround": "Użyj obejścia dla błędu tylko tryb
wentylacji.",
"show_all_presets": "Pokaż wszystkie ustawienia wstępne",
"additional_operation_modes": "Dodatkowe tryby pracy",
"max_connection_lifetime": "Maksymalny czas połączenia"
},
"data_description": {
"temp_step": "Wielkość kroku dla nastawy temperatury",
"additional_operation_modes": "Określenie dodatkowych trybów
pracy",
"max_connection_lifetime": "Maksymalny czas w sekundach, przez
który połączenie będzie używane (minimum 30 sekund)"
}
}
}
},
"services": {
"set_follow_me": {
"name": "Ustaw podążaj za mną",
"description": "Ustaw funkcję podążaj za mną.",
"fields": {
"enabled": {
"name": "Włączona",
"description": "Określ czy funkcja podążaj za mną ma być
włączona."
}
}
}
}
}
śr., 22 lis 2023 o 00:15 Tucker Kern ***@***.***> napisał(a):
… Hey @Theo16 <https://github.com/Theo16> I don't think email attachments
come through on Github. You'll probably have to attach it to a comment
manually.
I would also need to be able to
translate words such as: off, horizontal, vertical, both; low, medium,
high, auto.
I thought this wasn't possible but upon reviewing the docs
<https://developers.home-assistant.io/docs/internationalization/core> it
may be but I'll have to run some tests
—
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNK2ANM6QCTRK7W7J4IDSTYFUYZVAVCNFSM6AAAAAA7TIT4FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRHA2DKOBXHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
PL:
"entity": {
"climate": {
"midea_ac": {
"state_attributes": {
"fan_mode": {
"state": {
"Silent": "Cichy",
"Low": "Niski",
"Medium": "Średni",
"High": "Wysoki",
"Auto": "Auto"
}
},
"swing_mode": {
"state": {
"Off": "Wyłączony",
"Vertical": "Pionowy",
"Horizontal": "Poziomy",
"Both": "Oba"
}
}
}
}
}
śr., 22 lis 2023 o 01:22 Tucker Kern ***@***.***> napisał(a):
… I figured out how to enable translations of swing modes and fan speeds.
See #55 <#55>
The following additional values need to be translated
"entity": {
"climate": {
"midea_ac": {
"state_attributes": {
"fan_mode": {
"state": {
"Silent": "Silent",
"Low": "Low",
"Medium": "Medium",
"High": "High",
"Auto": "Auto"
}
},
"swing_mode": {
"state": {
"Off": "Off",
"Vertical": "Vertical",
"Horizontal": "Horizontal",
"Both": "Both"
}
}
}
}
}
—
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNK2ALOQRWNZZFVLAEJG6DYFVAUDAVCNFSM6AAAAAA7TIT4FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRHA4TSNRTG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
PL V2:
"entity": {
"climate": {
"midea_ac": {
"state_attributes": {
"fan_mode": {
"state": {
"Silent": "Cichy",
"Low": "Niski",
"Medium": "Średni",
"High": "Wysoki",
"Auto": "Automatyczny"
}
},
"swing_mode": {
"state": {
"Off": "Wyłączony",
"Vertical": "Pionowy",
"Horizontal": "Poziomy",
"Both": "Oba"
}
}
}
}
}
śr., 22 lis 2023 o 01:22 Tucker Kern ***@***.***> napisał(a):
… I figured out how to enable translations of swing modes and fan speeds.
See #55 <#55>
The following additional values need to be translated
"entity": {
"climate": {
"midea_ac": {
"state_attributes": {
"fan_mode": {
"state": {
"Silent": "Silent",
"Low": "Low",
"Medium": "Medium",
"High": "High",
"Auto": "Auto"
}
},
"swing_mode": {
"state": {
"Off": "Off",
"Vertical": "Vertical",
"Horizontal": "Horizontal",
"Both": "Both"
}
}
}
}
}
—
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNK2ALOQRWNZZFVLAEJG6DYFVAUDAVCNFSM6AAAAAA7TIT4FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRRHA4TSNRTG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jmigual Thanks for the contributions! I also need the strings in this file (https://github.com/mill1000/midea-ac-py/blob/main/custom_components/midea_ac/translations/en.json) for a complete translations. Would you be able to provide that? EDIT: I also need a translation for the "Custom" fan speed. @Theo16 Thanks! There's one more fan mode that I need translated. I forgot to include in the original post. Can you provide a translation for "Custom"? |
If I understand correctly, you mean custom, i.e. a value from 1 to 100, for
example? If so, the Polish equivalent is "Ręcznie".
śr., 22 lis 2023 o 16:59 Tucker Kern ***@***.***> napisał(a):
… @jmigual <https://github.com/jmigual> Thanks for the contributions! I
also need the strings in this file (
https://github.com/mill1000/midea-ac-py/blob/main/custom_components/midea_ac/translations/en.json)
for a complete translations. Would you be able to provide that?
@Theo16 <https://github.com/Theo16> Thanks! There's one more fan mode
that I need translated. I forgot to include in the original post. Can you
provide a translation for "Custom"?
—
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNK2AP3UJOSATEVOYFJCNDYFYOPBAVCNFSM6AAAAAA7TIT4FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGA2DEOBSGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Yes exactly. Thank you very much. PR created #56 |
Alright here it is: Translation Spanish:
|
Thanks! I'll get these merged and cut a new release early next week. |
Hi! I came across your work, and finally was able to set up my Fisher Comfort Plus FSAIF-CP-121AE3 (Midea) to HA. |
Here is a pt-PT for portuguese translation, same expressions may be a little bit off but I will correct them after I set my ACs and make use of this integration to get a better context. |
Thanks! I've created a PR here: #59 I'll wait to merge until you OK the translations. |
Hi to all, please find attached the Croatian translation. Regards. |
Thanks! |
Hi all, here is a Dutch translation. I've left ID, host, port, token and key in English, because I guess users will need to find this information in English as well. Thanks for the nice work! |
Thanks! PR #73 |
Hello, This is the translation file for Romanian (ro-RO) language. |
Thanks! I just merged a PR that added a few new strings. Would you be able to update this translation with those strings? |
Yes. I'll update the file and repost the updated one soon. |
Considered it once, but the beep setting is stateless so it didn't make sense as an entity to me. |
Sorry my mistake. Here is new file. |
Hi mill1000, attached you'll find the updated Dutch translation. |
Thanks! |
Please find attached the translated parts, if something is missing please let me know:
|
@lpispek Thanks a lot! Do you want to provide translation for the following entites as well?
|
Please find the translated entities. Thank you for the info.
|
Thanks again! |
I found there is no Chinese translation while I recommend this integration to someone, so I post one here. BTW this translation is in simplified Chinese (chs) which is used mainly in mainland China and Singapore -- And below is not enclosing traditional Chinese (cht) which is mainly used in Hong Kong, Macao and Taiwan, but sometimes will use some different characters and words.
|
Thanks! PR #165. I went with he |
Noticed there is no Sloven translation, so here it is for those who might need it. |
Thanks for adding the language, so below is for zh-Hant(繁體中文). As I mentioned, traditional Chinese users sometimes use different words so I changed some wordings while converting zh-Hans to zh-Hant. However, some wordings might still not suitable since I am not native speaker after all:
|
Excellent. Thanks. PR #168
Thanks again! I'm sure its better than no translation at all. PR #167 |
New polish ver. |
Please find the Croatian translation for the new "Active Clean" feature
|
Thanks again. There's been a lot of churn lately with the translations so I appreciate your contributions |
Hi I added Czech translation in PR #197 . It is translation of current version of en.json |
Thanks for the contribution! It's really cool to see how many languages are being added. Yes. There has been a lot of churn lately which has left a number of languages with missing translations for some fields. |
Here the translation in french |
eu.json |
Cool! PR #262 |
pl.json |
Thanks again! PR #265 |
I would like to provide additional languages for the config flow, fan speeds, swing modes, etc.
How To Contribute
This file contains all the strings that need translating.
https://github.com/mill1000/midea-ac-py/blob/main/custom_components/midea_ac/translations/en.json
Only the values need to be translated. For example:
For each language, a new file should be created XX.json where XX is the language tag.
Either create a PR with the translations, or post the translations here and I will integrated them.
Thanks again.
The text was updated successfully, but these errors were encountered: