-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Add German translation to alarm messages [AlarmLogParser.cpp] #2258
base: master
Are you sure you want to change the base?
Conversation
@mattreim Thanks, are these from the Hoymiles S-Miles Installer App in a German warn_code.json or is this some manual translation by you ? |
They are all manual translations. |
I just looked in an .APK and only found en_us/zh_cn. |
@mattreim I just checked the current v1.1.29 of the S-Miles Installer APK if they have any translations inside. https://apkpure.com/s-miles-installer/com.hm.hemaiInstall1 and yes there is warn_code.json (ns, zh_cn and en_us) as you attached it which contains the following codes 211, 73, 72, 47, 46, 14, 13, 12, 11 as mentioned in #1068 (comment) "211": {
"ns": "mi.warn.name.211",
"zh_cn": "PV3端口无输入",
"en_us": "PV3 No input"
},
...
"73": {
"ns": "mi.warn.name.73",
"zh_cn": "过温降载功能启用",
"en_us": "TW function enable"
},
"72": {
"ns": "mi.warn.name.72",
"zh_cn": "电网过频降载FW功能启用",
"en_us": "FW function enable"
},
"71": {
"ns": "mi.warn.name.71",
"zh_cn": "电网过压降载VW功能启用",
"en_us": "VW function enable"
},
...
"47": {
"ns": "mi.warn.name.47",
"zh_cn": "FB过流",
"en_us": "FB overcurrent"
},
"46": {
"ns": "mi.warn.name.46",
"zh_cn": "FB过流",
"en_us": "FB overvoltage"
},
...
"36": {
"ns": "mi.warn.name.36",
"zh_cn": "INV过流过压",
"en_us": "INV overvoltage or overcurrent"
},
...
"14": {
"ns": "mi.warn.name.14",
"zh_cn": "电网相位突变",
"en_us": "Grid phase mutation"
},
"13": {
"ns": "mi.warn.name.13",
"zh_cn": "电网频率突变",
"en_us": "Grid frequency mutation"
},
"12": {
"ns": "mi.warn.name.12",
"zh_cn": "电网电压幅值大幅跌落",
"en_us": "Grid voltage sharp drop"
},
"11": {
"ns": "mi.warn.name.11",
"zh_cn": "浪涌冲击",
"en_us": "Grid voltage surge"
}, And a lj_warn_code.json too, the latter being in simplified chinese only. @tbnobody I translated some of the missing Event IDs like 52, 53 from the chinese lj_warn_code.json: "52_1": "1. 220V power connection line is disconnected\n2. 220V power relay is damaged", But I did not find 220 as mentioned by @schneeer here #2090 (comment) |
You may sort the warn_code.json using the following jq query: cat warn_code.json | jq '. | to_entries | sort_by(.key | tonumber) | from_entries' > warn_code_sorted.json |
Unfortunately, they are already very old. |
No description provided.