-
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
希望能支持配置翻译字典 #98
Comments
Title: Hope to support configuring translation dictionary |
翻译会完善的,我正准备开始这块,不过估计会先按HA官方方案来一遍。 |
The translation will be perfected, and I'm about to start it, but I guess I'll do it according to the HA official plan first. |
希望加快进程,辛苦了 |
I hope to speed up the process. Thank you for your hard work. |
@yyax 这个功能应该是根据设备具体类型来添加的,应该 @Necroneco 已经解决了,但是不同的设备可能需要分别添加多种翻译语言,工作量会比较大。不会一次把所有设备都加完,只能有需求了,逐个设备添加吧。 |
@yyax This function should come to Tianjin based on the specific type of device. It should have been solved by @Necroneco. However, different devices may need to add multiple translation languages separately, and the workload will be relatively large. |
设备有滚筒洗衣机,洗碗机,微蒸烤,燃气热水器...... |
Equipment includes drum washing machine, dishwasher, micro-steam oven, water heater... |
设备有点多,哈哈,但是现在尴尬的问题并不是技术问题,也不是需要翻译的设备量多大,而是:翻译成什么中文合适…… 以前好像官方的lua脚本是带有完整的中文注释和说明,直接对着注释改就完事了,现在新版的我看了,已经没有注释了。 实在不行,就是只能用最笨的办法去干体力活了:借你账号登录美居,临时改密码,直接登录你账号,一个一个看实际的中文名字,尝试人工翻译一下关机的字段即可。 我先抽空找找是否有旧的带中文注释的lua脚本吧 |
There are a lot of equipment, haha, but the embarrassing problem now is not a technical issue, nor is it the amount of equipment that needs to be translated, but: what Chinese is suitable for translation... In the past, it seemed that the official Lua script had complete Chinese comments and instructions, and you could just modify the comments directly. Now I have read the new version, and there are no comments anymore. If it really doesn't work, I can only use the stupidest way to do physical work: log in to Mercure with your account, change the password temporarily, log in to your account directly, look at the actual Chinese names one by one, and try to manually translate the shutdown fields. . I'll take some time to look for old Lua scripts with Chinese comments first. |
如果逐个翻译的话确实是个体力活,所以我希望能够外挂字典来翻译就像miot集成那样的。比如洗衣机和洗碗机的状态都有Idle,如果能够外挂Idle=空闲(也可以是其他语言),那么就一下解决了多个设备的空闲状态,我不懂技术,只是说出自己的想法,感谢回复 |
Translating them one by one is indeed a laborious task, so I hope to be able to plug in a dictionary to translate, just like miot integration. For example, the status of washing machines and dishwashers both have Idle. If Idle=idle can be plugged in (it can also be in other languages), then the idle status of multiple devices can be solved at once. I don’t know the technology, but I just express my thoughts. Thanks for reply |
现在就是这么干的,就是说 即使这么干 它也是个体力活。 我等下会把所有设备的翻译字段都整理到 |
This is what we do now, which means that even if we do this, it is still laborious work. I will organize the translation fields of all devices into |
设备类型及型号 (或SN)
Front Load Washer 38124878
新功能的描述
好多设备的状态不是我想要的语言,等待homeassistant官方支持又遥遥无期,所以希望midea ac lan能支持配置翻译字典,就像mito那样的,谢谢啦!https://github.com/al-one/hass-xiaomi-miot/blob/master/custom_components/xiaomi_miot/core/translation_languages.py
The text was updated successfully, but these errors were encountered: