#6338 NORM -: sugar.activity class should call locale.setlocale()
Zarro Boogs per Child
bugtracker at laptop.org
Thu Sep 18 13:51:40 EDT 2008
#6338: sugar.activity class should call locale.setlocale()
----------------------------+-----------------------------------------------
Reporter: pierre | Owner: sayamindu
Type: defect | Status: new
Priority: normal | Milestone:
Component: localization | Version: Q2D16
Resolution: | Keywords: french date format localization locale
Next_action: review | Verified: 0
Blockedby: | Blocking:
----------------------------+-----------------------------------------------
Comment(by pierre):
Since build 653 when I developped the Clock activity
(http://wiki.laptop.org/go/Clock_activity), I've had problem displaying
the name of the day or the date on my XO which is localized for fr_CA. In
prevision of 8.2, I'm presently running a recent joyride, and I decided to
solve that long lasting bug in this activity.
I dont have my XO with me at the present time, so I can't give you more
details. I'll update this ticket tonight with more information. For the
time being, I just checked into the Clock activity code and yes I import
gtk.
Yesterday night when I updated the bug report, I created a test activity
from the Activity Tutorial (http://wiki.laptop.org/go/Activity_tutorial),
with a datetime.strftime("%x") instead of the Hello Word message, and it
also exhibits the same problem, even if it imports gtk too. I'll upload
the source tonight too, if you want it.
I've tested your code snippet from the python command line and it works,
without a call to setlocale(). But from my tests, it seems not to work in
a Sugar activity context...
--
Ticket URL: <http://dev.laptop.org/ticket/6338#comment:7>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list