-
Notifications
You must be signed in to change notification settings - Fork 89
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
[OSX] AttributeError: 'module' object has no attribute 'bindtextdomain' #15
Comments
Yeah some of the locale things are not really done in a portable way (there is already a special case for windows...). I don't have a Mac myself so I can't really test regularly, I might have broken something inadvertently. Basically the problem here is that Gtk relies on the locale domain being set in the C gettext library, which the gettext module doesn't do -- which is why we do it through the locale module, which exposes the C gettext library's functions directly. A binding that doesn't work on your platform apparently. The standard Python feature as you say, would be to do bind the text domain with the gettext module, but this results in only half the strings being translated (those dynamically used from the python code, but not those loaded by the Gtk widgets). Let me go look for a workaround. |
The error is due to gettext.bindtextdomain not working for Gtk3, and locale.bindtextdomain which works on linux not existing on Mac OS X. See issue #15.
@brianmay Is there a
|
Looks like on my system I have a Ok, this helps.
Now:
Ok, that looks better so far. Will try pympress again. |
pympress still generates the same error. |
If you check out the
What's more, if |
It works! Thanks for your help. |
Hello,
Apparently this has been tested on Mac (assuming you mean OSX?), however I am not able to get past this error:
If I try:
I am a bit puzzled at this point, I thought that was a standard Python feature.
Regards
The text was updated successfully, but these errors were encountered: