Skip to content
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

Checks performed when saving translation should be performed when saving suggestions too #2383

Closed
emmapeel2 opened this issue Nov 13, 2018 · 3 comments
Assignees
Labels
enhancement Adding or requesting a new feature.
Milestone

Comments

@emmapeel2
Copy link
Contributor

emmapeel2 commented Nov 13, 2018

Describe the bug
When I accept other translators suggestions, the checks about 'trailing newline', 'trailing space', 'invalid XML' etc start to appear. This tests should be performed before the user adds the suggestion, and prevent the saving of said suggestion instead.
This will save reviewing time, and also will help translators to learn not to make the mistakes.

To Reproduce
Steps to reproduce the behavior:

  1. Add a translation that will provoke and error (depending on the tests you have selected)
  2. Click on Save
  3. A message appears saying there is an error
  4. Click on Suggest

The suggestion gets saved without problem

Expected behavior
The error message should appear again and prevent the suggestion to be saved (or have an error flag but that will be really complicated I think)

Server configuration and status

  • Weblate weblate-3.2.2
  • Python 2.7.15
  • Django 1.11.16

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@nijel
Copy link
Member

nijel commented Nov 13, 2018

Just to clarify - the translation is saved as well, it's just the message is shown and you stay on same string. But indeed the suggestions should behave similarly.

@nijel nijel added the enhancement Adding or requesting a new feature. label Nov 13, 2018
@emmapeel2
Copy link
Contributor Author

yeah the problem is that when i accept suggestions i dont have this information neither. It would be nice if the suggestions were flagged somehow as not passing a check.
otherwise, each time I go through the pending suggestions, i get a lot of error messages aftwerwards, not when I am looking at the suggestions.

and happy birthday to the ticket!

@nijel nijel self-assigned this Mar 4, 2020
@nijel nijel added this to the 4.0 milestone Mar 4, 2020
@nijel nijel closed this as completed in b28da79 Mar 4, 2020
@github-actions
Copy link

github-actions bot commented Mar 4, 2020

Thank you for your report, the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see similar problem, please open separate issue.
  • If you are happy with the outcome, consider supporting Weblate by donating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding or requesting a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants