#6338 NORM -: sugar.activity class should call locale.setlocale()

Zarro Boogs per Child bugtracker at laptop.org
Sun Aug 23 07:30:04 EDT 2009


#6338: sugar.activity class should call locale.setlocale()
------------------------------------+---------------------------------------
           Reporter:  pierre        |       Owner:  sayamindu                             
               Type:  defect        |      Status:  closed                                
           Priority:  normal        |   Milestone:                                        
          Component:  localization  |     Version:  Q2D16                                 
         Resolution:  fixed         |    Keywords:  french date format localization locale
        Next_action:  review        |    Verified:  0                                     
Deployment_affected:                |   Blockedby:                                        
           Blocking:                |  
------------------------------------+---------------------------------------

Comment(by sunrise1):

 After a lot of googling, I've found at least the reasons for such a
 behavior with Python programs. The full explanation is here:
 http://docs.python.org/lib/module-locale.html A program will not be locale
 aware as long you don't import the locale module and call setlocale(),
 even if your environment is set with a locale![http://www.tagnice.com
 nike air yeezy shoes]

 So as the base class sugar.activity does not set the locale correctly
 according to the locale selected by the user in the control panel, you
 have to explicitly call setlocale() in your activity.

-- 
Ticket URL: <http://dev.laptop.org/ticket/6338#comment:12>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list