-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Update default translations #15420
Update default translations #15420
Conversation
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
itests/org.openhab.binding.nest.tests/src/main/resources/OH-INF/i18n/nest.properties
Outdated
Show resolved
Hide resolved
Previously the plug-in was only used to generate files for add-ons that did not have any at all (#11760). |
I only ran the i18n plugin, did not check anything manually.
Right, haven't thought about this yet. Probably it is better to close this PR and instead ask the binding maintainers from the code owners file to update their bindings? I don't have the time to check all placeholders that are removed ... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM deutschebahn
I have checked 80, might check the rest too. One might allways slip, but that can allways be fixed easily. Creating 147 separate PR's is also a huge effort and is no garantuee of similar issues. So i suggest to go forward with this, but i am not a maintainer :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for enigma2 binding
Perhaps do a search for @text/* ?? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2nd pass: checked remaining 65 bindings :-/
Did not check each lines, just scanned them and i think there are some minor adjustements needed.
itests/org.openhab.binding.nest.tests/src/main/resources/OH-INF/i18n/nest.properties
Outdated
Show resolved
Hide resolved
...dergroundupdatereceiver/src/main/resources/OH-INF/i18n/wundergroundupdatereceiver.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.tacmi/src/main/resources/OH-INF/i18n/tacmi.properties
Outdated
Show resolved
Hide resolved
bundles/org.openhab.binding.snmp/src/main/resources/OH-INF/i18n/snmp.properties
Outdated
Show resolved
Hide resolved
@@ -1,590 +1,72 @@ | |||
# add-on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@markus7017 is doing an extensive refactoring of this binding, maybe he can confirm that this is ok? Removing ~600 lines and only adding ~75 lines of translation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case I will leave the shelly.properties unchanged and let @markus7017 manage the translations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are just finalizing the latest PR. Anything open from this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@florian-h05 I always manage translations incl. using crowdin
There are still some strings in the XML like symbolic thing name, which I didn't move to the resource file. I think it doesn't make sense to have the same string in EN+DE, but of course I could do that.
I didn't got what's required on top, is there anything specific from this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As you always manage translations, I will leave those translations to you.
I guess I will close this PR now as it seems no one is willing to review it, so do your Shelly PR as you want to.
I think it doesn't make sense to have the same string in EN+DE, but of course I could do that.
Agreed. I haven’t checked these details when updating the translations, because doing that for all bindings would be very time-expensive job.
|
||
# thing types | ||
|
||
thing-type.satel.atd-100.label = ATD-100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it make sense to put device model symbol to translation file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case it makes sense to leave because the descriptions should be translated IMHO.
- Addressed review. - I have read through all changes files and fixed every bug I noticed. - I decided to leave out persistence, because I have an extra PR for that. Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have read through all changed files, addressed the reviews and fixed my own findings.
|
||
# thing types | ||
|
||
thing-type.satel.atd-100.label = ATD-100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case it makes sense to leave because the descriptions should be translated IMHO.
@@ -1,590 +1,72 @@ | |||
# add-on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case I will leave the shelly.properties unchanged and let @markus7017 manage the translations.
@@ -12,30 +12,6 @@ thing-type.nzwateralerts.wateralert.description = Water Alert Levels for New Zea | |||
|
|||
thing-type.config.nzwateralerts.wateralert.location.label = Location | |||
thing-type.config.nzwateralerts.wateralert.location.description = The location to get the Water Alert level for. | |||
thing-type.config.nzwateralerts.wateralert.location.option.bewaterwise:whangarei:breambay = Bream Bay |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: I removed the locations here, no need to have them translated.
...rg.openhab.binding.livisismarthome/src/main/resources/OH-INF/i18n/livisismarthome.properties
Show resolved
Hide resolved
@lsiepel @openhab/add-ons-maintainers IMO this is ready now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Satel looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Thanks!
addon.mimictts.name = Mimic Text-to-Speech | ||
addon.mimictts.description = The Mimic Text-to-Speech (TTS) service uses the offline open source Text-to-Speech engine designed by Mycroft A.I. | ||
|
||
# add-on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello,
I think this second "# add-on" line is a typo ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is generated by the plugin, and also exists for other files like jsscripting.properties
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for Nanoleaf
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for aWATTar and tacmi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mercedes & e3dc lgtm
Signed-off-by: Bernhard Bauer <bern77@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your initiative!
I've added some additional translations to completely match the German version of the file.
Also, I believe the file has to be named differently.
(see my 2 commits)
Otherwise - LGTM 😊
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for KVV
Both of your commits, lack DCO. Besides that, if the i18n plugin generates wrong filename for 'sub' bindings like Modbus and Bluetooth, shouldn't those bindings also be fixed? Then i look ad at your other commit where you added some translations, i noticed that here the modbuis without subbinding name is missing: example: Only difference is the binding name. This looks to be the same problem (wrong binding name) as with the file name, possibly a i18n plugin bug? Or am i mistaken? Unless this can be fixed easily, i suggest leaving the translations for those affected bindings out of this PR. Just to speed up merging this PR, as the number of bindings/files involved, this can get a merge conflict galore :-) |
I made the edits directly in GitHub. The graced me with the learning, into which of the two presented text boxes I should copy the DCO 🙄
TBH I've never used the i18n plugin and created the translation files manually... so I'm not really sure where or how to tackle this.
I'm also fine with that and could simply add the translations in an own PR. No intention to make this more complex than necessary! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nanoleaf LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
LGTM for miio
Closing this PR as it I don’t expect it to get reviewed and it meanwhile might be outdated as well. In case someone agrees to review this, I can reopen. |
Maybe it is better to seperate this to smaller chunks. Too bad for the efforts allready made. |
@openhab/add-ons-maintainers While working on #15378, I noticed that there are many add-ons with out-dated default translations.