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 unit disappearing if it was edited before first push #7606

Closed
2 tasks done
antonkomarev opened this issue May 6, 2022 · 3 comments
Closed
2 tasks done
Labels
wontfix Nobody will work on this.

Comments

@antonkomarev
Copy link

antonkomarev commented May 6, 2022

Describe the issue

If you are creating new translation unit and modifying it before the pushing to the repo, then after push it will disappear and will re-appear only after maintenance reset will be performed. This may lead to create duplicated keys.

I already tried

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

Steps to reproduce the behavior

This behavior only reproduce if you are using external Git repository for translations.

  1. Open page https://weblate.example/projects/project/component/en/#new
  2. Create translation unit test_key with value test_key
  3. Open page with translation unit editing https://weblate.example/translate/project/component/en/
  4. Edit translation of key to test_key2 and click Save and continue or Save and stay
  5. Open repository maintenance page: https://weblate.example/projects/project/component/en/#repository
  6. Click Commit & Push changes
  7. Open page with translation unit editing again https://weblate.example/translate/project/component/en/
    7.1. Translation unit is missing
  8. Open repository maintenance page again: https://weblate.example/projects/project/component/en/#repository
  9. Click Maintenance > Reset
  10. Open page with translation unit editing again https://weblate.example/translate/project/component/en/
    10.1. Translation unit is present

Expected behavior

Translation unit is present

Screenshots

Screen.Recording.2022-05-06.at.13.30.32.mov

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

Weblate 4.11.2

Weblate deploy checks

No response

Additional context

There is no issue if you push changes before the editing translation value.

@github-actions
Copy link

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label May 17, 2022
@nijel
Copy link
Member

nijel commented May 17, 2022

This might be related to #4953 - the string is added with different key than what Weblate expects.

@nijel nijel removed the wontfix Nobody will work on this. label May 17, 2022
@github-actions
Copy link

This issue has been automatically marked as stale because there wasn’t any recent activity.

It will be closed soon if no further action occurs.

Thank you for your contributions!

@github-actions github-actions bot added the wontfix Nobody will work on this. label May 28, 2022
@github-actions github-actions bot closed this as completed Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix Nobody will work on this.
Projects
None yet
Development

No branches or pull requests

2 participants