Skip to content
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

Feature request: implement pybabel lint #1011

Open
jeanas opened this issue Jun 11, 2023 · 2 comments
Open

Feature request: implement pybabel lint #1011

jeanas opened this issue Jun 11, 2023 · 2 comments

Comments

@jeanas
Copy link
Contributor

jeanas commented Jun 11, 2023

A common error that translators do is translating the format field names, while they should remain untranslated. For example: translating "File {file} not found" by "Fichier {fichier} non trouvé" instead of "Fichier {file} non trouvé".

There is a script in this repository that checks for such errors: https://github.com/himdel/lint-po. However, it does its own PO file parsing that looks a bit fishy. I'd rather have this functionality in babel, with a well-tested PO parser.

@Quix0r
Copy link

Quix0r commented Aug 8, 2023

That would be much appreciated.

@akx
Copy link
Member

akx commented Oct 1, 2023

Sounds like a great idea :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants