[Bugs] #1684 UNSP: Add support for an alternate localedir

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Jan 25 10:55:36 EST 2010


#1684: Add support for an alternate localedir
------------------------------------------+---------------------------------
    Reporter:  sayamindu                  |          Owner:  erikos     
        Type:  enhancement                |         Status:  new        
    Priority:  Unspecified by Maintainer  |      Milestone:  0.88       
   Component:  sugar-toolkit              |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:  r?         
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------
 This is an implementation for
 http://wiki.sugarlabs.org/go/Features/Enhanced_Gettext without
 breaking/adding to the API.

 The idea is pretty simple - before doing a bindtextdomain(), the candidate
 locale directories are scanned, and the one with the latest translations
 is chosen. (this is due to the fact that an activity may be updated,
 through which it may get newer translations than what is there in the
 langpackdir).

 It is less invasive than what I originally proposed, and seems to do what
 it needs to. It would need some testing though, since there may be a few
 corner cases I might have missed.

 The relevant patches are in:
  * http://git.sugarlabs.org/projects/sugar-toolkit/repos/gettext-
 enhancements/commits/ef093d395e3b682a4f1cc603b385fecb09298cff
  * http://git.sugarlabs.org/projects/sugar-toolkit/repos/gettext-
 enhancements/commits/173a4027019e0adff04534176167ac24a0b303cd

 It also needs an extra GConf key (added via the Sugar package):
 /desktop/sugar/i18n/langpackdir

 One problem with the code is that it adds a dependency to python-dateutils
 (for parsing the date). Python-dateutils is however, packaged for most
 distros. I could not figure out how to parse ISO 8601 formatted strings
 with the time.strptime().

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/1684>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list