#7921 BLOC 8.2.0 (: All activities (except Terminal and Journal) are always LTR, despite the locale

Zarro Boogs per Child bugtracker at laptop.org
Wed Aug 13 20:16:04 EDT 2008


#7921: All activities (except Terminal and Journal) are always LTR, despite the
locale
------------------------+---------------------------------------------------
   Reporter:  khaled    |       Owner:  marco               
       Type:  defect    |      Status:  new                 
   Priority:  blocker   |   Milestone:  8.2.0 (was Update.2)
  Component:  sugar     |     Version:  not specified       
 Resolution:            |    Keywords:  blocks:8.2.0        
Next_action:  diagnose  |    Verified:  0                   
  Blockedby:            |    Blocking:                      
------------------------+---------------------------------------------------

Comment(by marco):

 I looked a bit into this. The only approach I can think of is to delay
 gtk_init to after the fork. It could be done with something *evil* like
 the following, or maybe there is a better way to do it by patching pygtk.

 {{{
 [marco at localhost test]$ mkdir gtk
 [marco at localhost test]$ touch gtk/__init__.py
 [marco at localhost test]$ LANG=ar_TN.utf8 PYTHONPATH=. python
 Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:51)
 [GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import gtk
 >>> gtk.__path__=['/usr/lib/python2.5/site-packages/gtk-2.0/gtk']
 >>> from gtk import _gtk
 >>> _gtk.widget_get_default_direction()
 <enum GTK_TEXT_DIR_LTR of type GtkTextDirection>
 >>> _gtk.init_check()
 >>> _gtk.widget_get_default_direction()
 <enum GTK_TEXT_DIR_RTL of type GtkTextDirection>
 }}}

 Unfortunately this means the activity process would be doing more work.
 maemo-launcher is initializing a lot more stuff than we do (gtk included),
 because it runs as user and hence it's in the right environment. Ideally
 we would be doing the same, but I'm not sure how that could work with
 rainbow.

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


More information about the Bugs mailing list