Closed pleonex closed 5 years ago
Is this warning issue related to the translate-toolkit? Isn't related to the warning logic about detecting empty entries when needs editing is enabled?
PD: Originally the issue had the diff from the other issue. I already removed it but just confirming in case that was causing some misunderstanding.
Yes, I just read the email notification and flagged the issue accordingly. The translate-toolkit issue is https://github.com/WeblateOrg/weblate/issues/2934, this one is on Weblate side.
Thank you for your report, the issue you have reported has just been fixed.
Hi! I'm afraid this problem occurs again in newer versions. We are on 4.3.2 still, but the 4.4-dev shows the same behavior: https://hosted.weblate.org/checks/translated/
For the few strings I've checked it seems correct - the string has been translated and was marked for edit. Can you please point to actual example where the check is wrong?
Yes, those strings are marked for edit. But isn't it the point of this issue, that they should not - simply because of that - trigger a "Has been translated" warning?
The documentation for this warning states "This can happen when the translations have been reverted in VCS or lost otherwise.". This isn't the case here, leading to a very misleading information instead, covering up situations where actual interaction may be required (we got to this point recently due to changes in the JSON parser, which basically destroyed our VCS).
There are strings showing this warning, which seem to show it correctly: https://hosted.weblate.org/translate/andors-trail/user-interface/zh_Hans/?checksum=8b149fa03fec472a
But most of them seem to show it just because of the "Needs editing" marker. I also checked this with our translations to confirm that this is reproducable this way. Example: https://hosted.weblate.org/translate/andors-trail/user-interface/nl/?checksum=3a17e40effea7162
The original issue was different - the string was only marked as needing edit in Weblate and it was falsely flagged as being translated, while it has not been. If you think the check should behave differently than it does now, please open a separate issue. Right now it indicates all strings which have been translated regardless how it was changed to not translated state.
we got to this point recently due to changes in the JSON parser, which basically destroyed our VCS
There should be no breaking changes, can you please elaborate more on that (either in separate issue or in discussions).
https://hosted.weblate.org/translate/andors-trail/user-interface/nl/?checksum=3a17e40effea7162
The history shows here that the string was translated, so technically the check is correct. In reality there was a time, where need edit changes were tracked as completed translations in history and there is no way to recover this information now.
Thank you for the follow up. I opened a new issue (but I still can't see the difference to this one to be honest. The description is pretty much the same, see #5107).
There should be no breaking changes, can you please elaborate more on that (either in separate issue or in discussions).
We used the WebExtension JSON format before, but not using a hierarchy for elements (using dot-separated identifiers instead). This used to work until some update, which converted all JSON files to include the hierarchy. I would have to ask the admin that fixed the problem for us for more information though, if necessary.
Describe the bug After an entry has been already translated (even if it's already marked as "Need editing"), if the translation is modified and the user keeps the "Need editing" checked, it will trigger the warning "Has been translated".
I think it shouldn't trigger that warning at least, the message is misleading and in any case the report already marks the entry that needs editing as red.
To Reproduce Steps to reproduce the behavior:
Also:
Expected behavior This specific warning shouldn't show every time a translation is made and Needs editing is there. It's not a warning and the user is already marking as needing some action.
Server configuration and status
list_versions
:check --deploy
(I should fix those permissions errors... it's because I am mounting folders with Docker...)