-
Notifications
You must be signed in to change notification settings - Fork 72
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
Localization #292
Comments
Hi, this can be very useful, maybe gettext/ngettext could be needed in other library modules (not only in validators/exceptions.py) where error messages are defined. The init.py part should be left at the application level I suppose. Isn't it? Thanks |
Hi, Thanks |
Hi, I don't want to install translation into package Thanks |
Hi, Thanks |
Hi,
Translation can be also deactivated:
Translations are not installed in builtins for default (provide At schema level I've removed the proposed options because currently are not manageable at instance level with coherence. I have built a new xmlschema.POT template, that can be considered completed (I don't want to extend it to error The version v1.11.0 includes a full Italian translation and a partial Russian translation derived from your PR. Complete |
Hi @serwizz, I will publish soon a new release with fixes, and I'm uncertain that keeping heavily incomplete translations in the published package is a good thing (in any case one can create and use it's own custom translation locally for his installations). Thank you |
Hi, I'm working on it, I'll try to finish it in the next few days. Sorry for delay. |
Hi, |
I have merged the PR #303 but I report you that one message has not been translated:
If you post me a translation for this i will modify for you, otherwise you will make another PR in the future. Thank you |
Hi, Thank you |
Russian translation included in release v1.11.2. Best |
Hi!
Thank you for your great job with xmlschema! I use xmlschema for xml validation but I need to localize error messages. Unfortunately right now it is impossible. What do you think if I will add gettext support? I can make some pull requests with base localization code, e.g. python gettext initialization and wrap error messages.
Something like this:
init.py
validators/exceptions.py
Of course existing English messages will remain the same.
Thanks.
The text was updated successfully, but these errors were encountered: