WeblateOrg / WeblateOrg/weblate
Consecutive duplicated words check ignores the presence of placeholders
- Dominant language
- Python
- Stars
- 6.1k
- Forks
- 1.4k
- Avg merge
- 9h 53m
- Merged PRs (30d)
- 395
Description
### Describe the issue
I am translating a string that includes placeholders for singular/plural forms. In my target language (IT), one of the three string forms (one/many/other) would read as:
> Italian, Many (1000000, 2000000)
`Download di %d di episodi in corso.`
When the consecutive duplicated words check is enforced, the word `di` fails the check, even though a placeholder is present in between the two instances (which makes them not actually consecutive).
### I already tried
- [x] I've read and searched [the documentation](https://docs.weblate.org/).
- [x] I've searched for similar filed issues in this repository.
### Steps to reproduce the behavior
1. Enforce the consecutive duplicated words check
2. Repeat the same word on both sides of a placeholder (e.g. for singular/plural) within a string
3. The check fails
### Expected behavior
The check should not ignore the presence of a placeholder in between the consecutive duplicated words.
### Screenshots
_No response_
### Exception traceback
```pytb
```
### How do you run Weblate?
weblate.org service
### Weblate versions
_No response_
### Weblate deploy checks
```shell
```
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.