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

Updating a broken translation file can cause content to be wiped off #7850

Closed
2 tasks done
jonasraoni opened this issue Jul 6, 2022 · 5 comments
Closed
2 tasks done
Labels
question This is more a question for the support than an issue.

Comments

@jonasraoni
Copy link

Describe the issue

In one of our localization files there was a bug:

msgid "message"
msgstr "this line is ok"
here it's missing the initial quote

The interface was able to address the bug (I could view and edit the full bugged text), but after saving the translation, everything that came after the typo was wiped off.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar issues in this repository.

Steps to reproduce the behavior

  1. Upload a broken localization file
  2. Update it
  3. See the error

Expected behavior

The interface should disallow editing a broken localization file, and if possible offer an interface to fix it automatically (which shouldn't be destructive, such as removing data).

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Git checkout

Weblate versions

Weblate 3.9.1

Weblate deploy checks

No response

Additional context

No response

jonasraoni referenced this issue in pkp/ops Jul 6, 2022
Currently translated at 100.0% (92 of 92 strings)

Translation: Open Preprint Systems/locale
Translate-URL: http://translate.pkp.sfu.ca/projects/ops/locale/en_US/
@nijel nijel added the question This is more a question for the support than an issue. label Jul 7, 2022
@github-actions
Copy link

github-actions bot commented Jul 7, 2022

This issue looks more like a support question than an issue. We strive to answer these reasonably fast, but purchasing the support subscription is not only more responsible and faster for your business but also makes Weblate stronger.

In case your question is already answered, making a donation is the right way to say thank you!

@nijel
Copy link
Member

nijel commented Jul 7, 2022

Please upgrade first, the error handling has been improved a lot since then

@jonasraoni
Copy link
Author

I'll check if the guys can get it upgraded to give you some feedback :)

@nijel
Copy link
Member

nijel commented Jul 7, 2022

I think this could be the actual fix for problem you see: translate/translate#3912

@github-actions
Copy link

The issue you have reported is now resolved. If you don’t feel it’s right, please follow its labels to get a clue for further steps.

  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is more a question for the support than an issue.
Projects
None yet
Development

No branches or pull requests

2 participants