Open mill1000 opened 11 months ago
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: 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. 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.
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 https://github.com/mill1000/midea-ac-py/issues/54#issuecomment-1821224414, 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 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 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 (es_ES
):
"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 (ca_ES
) if you want to add it:
"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 https://github.com/mill1000/midea-ac-py/issues/54#issuecomment-1821845879, 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 https://github.com/mill1000/midea-ac-py/pull/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 https://github.com/mill1000/midea-ac-py/issues/54#issuecomment-1821899637, 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 https://github.com/mill1000/midea-ac-py/pull/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 https://github.com/mill1000/midea-ac-py/issues/54#issuecomment-1821899637, 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 https://github.com/mill1000/midea-ac-py/issues/54#issuecomment-1823042821, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNK2AP3UJOSATEVOYFJCNDYFYOPBAVCNFSM6AAAAAA7TIT4FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRTGA2DEOBSGE . You are receiving this because you were mentioned.Message ID: @.***>
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):
Yes exactly. Thank you very much. PR created #56
Alright here it is:
es.json
ca.json
Thanks! I'll get these merged and cut a new release early next week.
- [ ] Any language you want!
Hi!
I came across your work, and finally was able to set up my Fisher Comfort Plus FSAIF-CP-121AE3 (Midea) to HA. As a thank you :) , here's a Hungarian translation:
PRs
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: https://github.com/mill1000/midea-ac-py/pull/59
I'll wait to merge until you OK the translations.
Hi to all, please find attached the Croatian translation. Regards.
Thanks! PR here https://github.com/mill1000/midea-ac-py/pull/61
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! nl.json
Thanks! PR #73
Thanks! I just merged a PR that added a few new strings. Would you be able to update this translation with those strings?
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.
@johannes387 @lpispek @pdtgit @iscsu @jmigual @Theo16 @richbira @misa1515 @hwahyeon
If you're able to provide any translation updates as well that would be wonderful as well.
As promised.
I will do it soon and upload it. Thx
Zeljko Lav Pispek @.***
On Thu, 11 Apr 2024 at 16:19, Tucker Kern @.***> wrote:
@johannes387 https://github.com/johannes387 @lpispek https://github.com/lpispek @pdtgit https://github.com/pdtgit @iscsu https://github.com/iscsu @jmigual https://github.com/jmigual @Theo16 https://github.com/Theo16 @richbira https://github.com/richbira @misa1515 https://github.com/misa1515 @hwahyeon https://github.com/hwahyeon
If you're able to provide any translation updates as well that would be wonderful as well.
— Reply to this email directly, view it on GitHub https://github.com/mill1000/midea-ac-py/issues/54#issuecomment-2049804953, or unsubscribe https://github.com/notifications/unsubscribe-auth/APKM6CQVLGQWJDJHMMLDI2DY42LXXAVCNFSM6AAAAAA7TIT4FWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANBZHAYDIOJVGM . You are receiving this because you were mentioned.Message ID: @.***>
sk.json done
@MihaiKrieger Thanks! PR #113
Missing pl translation:
"select": {
"horizontal_swing_angle": {
"state": {
"off": "Wyłączony",
"pos_1": "Lewo",
"pos_2": "Lewo-środek",
"pos_3": "środek",
"pos_4": "Prawo-środek",
"pos_5": "Prawo"
}
},
"vertical_swing_angle": {
"state": {
"off": "Wyłączony",
"pos_1": "Góra",
"pos_2": "Góra-środek",
"pos_3": "Środek",
"pos_4": "Dół-Środek",
"pos_5": "Dół"
}
}
CRO - HRV part:
"select": {
"horizontal_swing_angle": {
"state": {
"off": "Off",
"pos_1": "Lijevo",
"pos_2": "Lijevo-centar",
"pos_3": "Centar",
"pos_4": "Desno-centar",
"pos_5": "Desno"
}
},
"vertical_swing_angle": {
"state": {
"off": "Off",
"pos_1": "Gore",
"pos_2": "Gore-centar",
"pos_3": "Centar",
"pos_4": "Dolje-centar",
"pos_5": "Dolje"
}
}
Thanks. I've have these merged and released soon
Hello! This is the translation file for the Bulgarian (bg-BG) language. bg.json
Excellent! Thank you. PR #124
Excellent! Thank you. PR #124
I missed the configuration screen and am not 100% sure I filled it out correctly. I especially didn't understand the meaning of "Use Fan-only Workaround" - so I didn't translate it. Is this some kind of "temporary hack"?
Also, I couldn’t find where to insert the translation of the terms: "Horizontal Swing Angle", 'Vertical Swing Angle", "Fan speed", "Filter Alert", “Display", “Purifier”?
Nevertheless, here is the RU translation. midea-ru.json
I missed the configuration screen and am not 100% sure I filled it out correctly. I especially didn't understand the meaning of "Use Fan-only Workaround" - so I didn't translate it. Is this some kind of "temporary hack"?
Yes "Use Fan-only Workaround" is a hack that I inherited from the original project. Apparently some devices had a quirk where they'd turn on and set to "fan-only" when queried. This hack effectively disabled polling the device state and instead assumes its state.
I am not aware of any users currently using it.
Also, I couldn’t find where to insert the translation of the terms: "Horizontal Swing Angle", 'Vertical Swing Angle", "Fan speed", "Filter Alert", “Display", “Purifier”?
Nevertheless, here is the RU translation. midea-ru.json
Thanks. I appreciate it.
Looks like you found the "Horizontal Swing Angle", 'Vertical Swing Angle" and "Fan speed" terms.
I have not setup translations for "Filter Alert", “Display", and “Purifier” yet.
PR #154
Yes "Use Fan-only Workaround" is a hack that I inherited from the original project. Apparently some devices had a quirk where they'd turn on and set to "fan-only" when queried. This hack effectively disabled polling the device state and instead assumes its state.
I'll keep this in mind.
Looks like you found the "Horizontal Swing Angle", 'Vertical Swing Angle" and "Fan speed" terms.
I found the states, but not the term itself.
I have not setup translations for "Filter Alert", “Display", and “Purifier” yet.
It would be cool if you added this. There are languages in which the Latin alphabet does not look very beautiful.
I found the states, but not the term itself.
Ah. In the case of horizontal and vertical swing angle you should be able to do this with the following form right now.
"vertical_swing_angle": {
"name": "Vertical Swing Angle",
"state": {
"off": "Off",
"pos_1": "Top",
"pos_2": "Top-center",
"pos_3": "Center",
"pos_4": "Bottom-center",
"pos_5": "Bottom"
}
}
The rest will require some updates
@KVinS #155 should enable you to translate the remaining entities
@KVinS #155 should enable you to translate the remaining entities
Thanks! I didn't know what to do with "purifier" for me it "Air Magic+" so I chose the most neutral term “air purification”.
I would also like to point out that it is not obvious to me as a user what “max_connection_lifetime” and “use_fan_only_workaround” are (what it will influence).
And it’s not clear what to enter in “additional_operation_modes”.
I also don’t understand what “show_all_presets” affects.
Those settings are documented here: https://github.com/mill1000/midea-ac-py?tab=readme-ov-file#integration-options
By the way, wouldn’t it be more logical to move the beep enabled to the display panel?
By the way, wouldn’t it be more logical to move the beep enabled to the display panel?
Considered it once, but the beep setting is stateless so it didn't make sense as an entity to me.
pl.json Updated polish translation.
@Theo16 Thanks! PR #156 I noticed you didn't translate the names of "Filter alert", "Fan speed", "Horizontal swing angle", and "Vertical fan angle". Was that intentional?
Hi mill1000, attached you'll find the updated Dutch translation. nl.json
@johannes387 Awesome. Thank you.
@mitakvd @lpispek @v1k70rk4 @richbira @MihaiKrieger @jmigual @misa1515 Entity names can now be translated if any of you feel inclined to update your respective translations.
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.