WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.37k stars 975 forks source link

Add-on to flag strings changed in the repository as needing editing #10653

Open dgaponov opened 6 months ago

dgaponov commented 6 months ago

Describe the issue

I tried to set the translation flags in different ways, but I can't solve the following problem: when changing the translation text in the github repository, the translation in Weblate remains the same "Translated" status.

I want the translation status to change to "Need editing" when the translation text changes. How can I do this?

I already tried

Steps to reproduce the behavior

  1. I change the source strings, the status of target is automatically set to "Needs editing".
  2. I manually confirm the correctness of the translation. The status is set to "Translated".
  3. I am changing the translation in the external repository. But after the changes, the status in weblate also remains "Translated".

Expected behavior

When changing a translation, its status should switch to "Needs editing".

Screenshots

image

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

Weblate deploy checks

No response

Additional context

No response

nijel commented 6 months ago

This is expected - string changes in the repository are assumed to be finished. File formats which support that (such as XLIFF or Gettext PO) can specify string state as well, but I guess you are not using one of them.

dgaponov commented 6 months ago

This is expected - string changes in the repository are assumed to be finished. File formats which support that (such as XLIFF or Gettext PO) can specify string state as well, but I guess you are not using one of them.

I am using the i18next translation format. Is there any way to modify the default behavior? I would like to change the translation status when it is updated in the repository.

dgaponov commented 6 months ago

@nijel Hello. Can you help me with my problem? Can I solve it through a custom plugin?

nijel commented 6 months ago

It can probably be implemented as an addon, there are similar ones for new strings.

github-actions[bot] commented 6 months ago

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[bot] commented 6 months ago

This issue has been put aside. It is currently unclear if it will ever be implemented as it seems to cover too narrow of a use case or doesn't seem to fit into Weblate.

Please try to clarify the use case or consider proposing something more generic to make it useful to more users.