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

Translation errors can’t be fixed using Pontoon #425

Closed
TheoChevalier opened this issue Jun 23, 2021 · 1 comment · Fixed by #507
Closed

Translation errors can’t be fixed using Pontoon #425

TheoChevalier opened this issue Jun 23, 2021 · 1 comment · Fixed by #507
Milestone

Comments

@TheoChevalier
Copy link

STR:

  • Send a translation using Pontoon with a translation error (e.g. going over the character limit)
  • Send a shortened version of the translation using Pontoon

Current behavior:
Capture d’écran 2021-06-17 à 19 47 59
The translation is updated, but the error remains, and the character count still reflects the old translation’s length. The translation won’t get published until a Wagtail admin manually edits then save the translation.

Expected:
The error disappears as soon as a valid translation comes from Pontoon and is immediately published

@kaedroho
Copy link
Contributor

When translations are updated from a PO file, we're not clearing the "has_error" flag.

This code only sets it to false when it creates a new translation:

'has_error': False,

The solution would be to check if created is False and update any fields that need to be changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants