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

Add support for gettext .po files #145

Open
jayvdb opened this issue Sep 15, 2021 · 1 comment
Open

Add support for gettext .po files #145

jayvdb opened this issue Sep 15, 2021 · 1 comment
Labels
P: maybe Pending approval of low priority request. S: needs-decision A decision needs to be made regarding request. T: feature Feature.

Comments

@jayvdb
Copy link

jayvdb commented Sep 15, 2021

A filter for gettext .po files would allow verifying that the text in the input language was spelt correctly, thereby finding errors in the text of many other formats which extract text to .po files for translation.

There are Python libraries for .po files which can help, e.g. https://pypi.org/project/polib/

@gir-bot gir-bot added the S: triage Issue needs triage. label Sep 15, 2021
@facelessuser
Copy link
Owner

I think this would be a good idea. Whether this is something for the core project or a 3rd party plugin is another question. I do think it would be very helpful to some. I'd be interested to see if there was a spec on .po files. If this was done in the core, I'd hate to pull in another dependency. All we really want is to target the necessary strings polib. Granted, if complexity is high enough, using a dependency is needed. exposing an easy way to navigate HTML required us to pull in BeautifulSoup (and for me to write a better CSS selector library, but I digress).

On the one hand, I can see the appeal for something like a .po filter in the core. It is a common enough thing for anyone doing localization. On the other hand, it does create more default dependencies and a larger maintenance burden on the core, one I'd have to assume.

I'll consider it, but if we decide to do this, it may be a low priority. With that said, anyone can create a 3rd party plugin if it is needed.

@gir-bot remove S: triage
@gir-bot add T: feature, S: maybe, S: needs-decision

@gir-bot gir-bot added S: needs-decision A decision needs to be made regarding request. T: feature Feature. and removed S: triage Issue needs triage. labels Sep 15, 2021
@facelessuser facelessuser added the P: maybe Pending approval of low priority request. label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: maybe Pending approval of low priority request. S: needs-decision A decision needs to be made regarding request. T: feature Feature.
Projects
None yet
Development

No branches or pull requests

3 participants