bugMyPaint - Bugs: bug #21229, Alternative to...

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #21229: Alternative to locale.bindtextdomain for Win32?

Submitted by:  Bakhtiar <tumagonx>
Submitted on:  Sat 26 Oct 2013 12:03:55 PM UTC  
 
Severity: 3 - NormalPriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Release: Planned Release: None
Operating System: Windows

Sat 26 Oct 2013 12:03:55 PM UTC, original submission:

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")
...

Bakhtiar <tumagonx>
Project Administrator

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by tumagonx (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup