URL:
<http://gna.org/bugs/?21229>
Summary: Alternative to locale.bindtextdomain for Win32?
Project: MyPaint
Submitted by: tumagonx
Submitted on: Sat 26 Oct 2013 12:03:55 PM GMT
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Planned Release: None
Operating System: Windows
_______________________________________________________
Details:
it was POSIX only: http://docs.python.org/release/2.7/library/locale.html
mypaint.py:
...
if sys.platform == 'win32':
os.environ['LANG'] = locale.getdefaultlocale()[0]
# Internationalization voodoo
# https://bugzilla.gnome.org/show_bug.cgi?id=574520#c26
#locale.setlocale(locale.LC_ALL, '') #needed?
logger.debug("getlocale(): %r", locale.getlocale())
logger.debug("localepath: %r", localepath)
logger.debug("localepath_brushlib: %r", localepath_brushlib)
# Low-level bindtextdomain, required for GtkBuilder stuff.
#locale.bindtextdomain("mypaint", localepath)
#locale.bindtextdomain("libmypaint", localepath_brushlib)
#locale.textdomain("mypaint")
...
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?21229>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs