-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translation errors #36
Comments
These errors are for UI, not docs. Considering reporting in there. Important subject, though. |
@AA-Turner I already mentioned the Tamil issue in #28 |
@AA-Turner Sorry for not answering this question specific before. TL;DR; I don't think there is straightforward way to avoid it in Transifex. Translations not honoring placeholders Pulling only reviewed translations would reduce the chance of these errors, but not ensure (plus adding a big burden to the existing contributors). I don't think it is worth. A manual solution would be to have me editing and fixing, or clearing the problematic translation strings. I can do that if you need, but I need to be made aware (via CI etc.) whenever it happens. Is it possible to programmatically retrieve the language codes causing the compilation to fail? It occurred to me that the transifex.yml CI workflow could keep going by first clearing these problematic language codes with |
I just thought about it, but maybe the simplest solution would be to mark all failing messages as fuzzy. This will skip these messages, allowing the rest to compile without errors.
It is possible with Maybe another script could use this information to add the fuzzy tag automatically. I made this very quick script to add the fuzzy flag to all failing strings using babel. It should probably be tuned a little bit to limit the diffs produced: from sys import argv
from babel.messages.pofile import read_po, write_po
file = open(argv[1], "r+b")
catalog = read_po(file)
for message in catalog:
errs = message.check()
if errs:
message.flags.add('fuzzy')
file.seek(0)
file.truncate()
write_po(file, catalog)
file.close() But it seems
So maybe using instead the stderr of |
A probably simpler possibility would be to make a |
Just to mention that Tamil team fixed the errors reported by Transifex, although I haven't checked the quality of the rest of the docs. Last time I checked, Changelog translation didn't have the issue number and link, so there's still room for improvement. |
I've had to blacklist Tamil, and zh_CN is newly failing, meaning the translations PRs don't get updated.
https://github.com/sphinx-doc/sphinx/actions/workflows/transifex.yml
Is there a way of ensuring in transifex that these errors don't happen?
A
The text was updated successfully, but these errors were encountered: