WeblateOrg / WeblateOrg/weblate

Configurable behavior when the source string changes in monolingual translation

Open
#16,177 2 comments 0 reactions 0 assignees View on GitHub
Area: Processing Waiting for: Demand
Dominant language
Python
Stars
6.1k
Forks
1.4k
Avg merge
9h 53m
Merged PRs (30d)
395

Description

### Describe the problem

Whenever a source string changes in my project, it's generally because the meaning of the sentence completely changes.
This source string is only marked as "Needs editing" in translated strings, but I'd like to reset them to be the same value as the source string, even if it means there is no translation anymore for the language to avoid having outdated strings in the final files.

I thought that the "Prefill translation with source" add-on would do that, but it seems that it doesn't.

So for example, the source english string is "Hello", translated to "Bonjour" in french. If I change this source string to "Hey", the french version would still be "Bonjour", but marked as "Needs editing". In this case, the french version should be set to "Hey", still marked as "Needs editing".

### Solution brainstorm

Could be an add-on that runs on source string change events?

Or it could be a toggle that makes file downloads have the translation strings reset instead of resetting them in the VCS. So translators can still use the old string as a reference with the changes highlighted. But I guess that doesn't work for Weblate instances that auto pushes translations to an external repository or for apps that pull translations from Weblate directly.

### Describe alternatives you have considered

Manually going into every translated string I want to reset and clicking the "Clone to translation" button, then saving the string.

### Screenshots

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.