Add TLDR113 to check all lines in translated page are translated - #457
Add TLDR113 to check all lines in translated page are translated#457sebastiaanspeck wants to merge 15 commits into
Conversation
- Label for see also mention should be spelled exactly `See also:` - Translated lines must not be identical to English page lines (only lines starting with `>` and `-` are checked) tldr-pages/tldr#20485 (comment)
…tion Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
b3e6647 to
746fcfc
Compare
This comment has been minimized.
This comment has been minimized.
|
If all words start with capital öetters, disregard it. |
I don't think that is waterproof. |
|
Hmmm. Although checking if every word has a capital first letter does prune the list considerably. From what I quickly checked, many of these are just that. BIRD, MPD and OBS were a couple I picked as a scattershot and they would have been filtered |
Will implement it and publish the new list here: |
|
That seems a bit more manageable. Can you check the Dutch mistakes to cut down the list even further? Once we get a list of only false positives, it'll be easier to create heuristics for this sort of thing. |
Opened tldr-pages/tldr#20516. Another exception could be to ignore it if the line only consists out of 2 (or maybe even 3) words. Then we would ignore lines like: |
|
With ignoring lines shorter than two words, we will have 28 issues to fix. (Without ignoring lines based on a word-count, we would've had 34 issues to fix) Ignoring lines shorter than two words: |
|
Opened tldr-pages/tldr#20542 to address remaining issues. |
|
In a similar vein to this, we could create a checker to see if the English page contains "- Display help:" or "- Display version:" and make sure that the translation matches the template. |
Although this is very closely related to the contributing-guides, if the required contributing guide doesn't exist in the expected folder structure, this check will fail. Similar to this, I sometimes see |




Translated lines must not be identical to English page lines (only lines starting with
>and-are checked) tldr-pages/tldr#20485 (comment)