WeblateOrg / weblate

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

Translation check inheritance #12779

Open jaigudess opened 1 week ago

jaigudess commented 1 week ago

Describe the issue

I have requirement, where once the translation is approved user can change the translation but its max-length or max-size should not be greater than then previously approved translation length. So i manually set the mx-size and max-length, but it is getting inherited to other languages with same keys.

How to fix this

I already tried

Steps to reproduce the behavior

  1. Add more than one language to translate, say German and Spanish
  2. Add one key in parent language (English)
  3. When you do the translation in German set the max length
  4. Same will be shown on Spanish key
  5. I want to set this as different values for example German Max-length : 10 and for Spanish Max-length : 12

Expected behavior

flags values getting inherited, which i guess is default but I want to set it manually for each translation

Screenshots

No response

Exception traceback

No response

How do you run Weblate?

Docker container

Weblate versions

No response

Weblate deploy checks

No response

Additional context

No response

nijel commented 1 week ago

The flags are currently set per source string in Weblate. They could be set for individual translations when parsed from the translation files, see https://docs.weblate.org/en/latest/formats.html#translation-flags