The translators experience in the reuse-tool translation component in Weblate could be improved by adding placeholders to part of strings that should be changed. The ultimate benefit is to let the translator and maintainer know when the translation doesn't contain the expression from the source string. See Checks and fixups in Weblate documentation.
Here is my suggestion (untested in Weblate, but tested locally):
placeholders:r"{[^}\s]*}":r"\-\-\w[\w\-]*":r"<[^>]+>'":r"https:\/\/[A-Za-z0-9.-]+(?:\/[^\s]*)?"
This matches:
{}, {word}, and {name!r} and other curly bracket expressions (some were automatically
- long options like
--add-license-concluded or --license
- URLs surrounded by < > tags
- URLs (without < >)
The translators experience in the [reuse-tool](https://hosted.weblate.org/projects/fsfe/reuse-tool) translation component in Weblate could be improved by adding placeholders to part of strings that should be changed. The ultimate benefit is to let the translator and maintainer know when the translation doesn't contain the expression from the source string. See [Checks and fixups](https://docs.weblate.org/en/weblate-5.17.1/admin/checks.html#customizing-behavior-using-flags) in Weblate documentation.
Here is my suggestion (untested in Weblate, but tested locally):
```placeholders:r"{[^}\s]*}":r"\-\-\w[\w\-]*":r"<[^>]+>'":r"https:\/\/[A-Za-z0-9.-]+(?:\/[^\s]*)?"```
This matches:
- `{}`, `{word}`, and `{name!r}` and other curly bracket expressions (some were automatically
- long options like `--add-license-concluded` or `--license`
- URLs surrounded by < > tags
- URLs (without < >)