[Bugs] #2944 Clock UNSP: Clock always uses American format

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Feb 18 15:48:47 EST 2013


#2944: Clock always uses American format
------------------------------------------+---------------------------------
    Reporter:  dsd                        |          Owner:  garycmartin                
        Type:  defect                     |         Status:  closed                     
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Clock                      |        Version:  Unspecified                
    Severity:  Unspecified                |     Resolution:  fixed                      
    Keywords:  patch                      |   Distribution:  Unspecified                
Status_field:  Unconfirmed                |  
------------------------------------------+---------------------------------
Changes (by humitos):

 * cc: manuq (added)
  * status:  new => closed
  * resolution:  => fixed


Comment:

 Replying to [comment:13 cjl]:
 > Are you unsure of the syntax for gettext-ing the markup?  If so, look at
 typingturtle or gogo as examples.

 I think this is an issue that should be solved by the translation team, in
 http://translate.sugarlabs.org

 The problematic line in clock is clock.py:139. Actually, it has a TRANS:
 comment there. For the Spanish translation we should use:
 {{{
 '<markup>\
 <span lang="en" font_desc="Sans 20">\
 <span foreground="#B20008">%A</span>, \
 <span foreground="#5E008C">%d</span>/\
 <span foreground="#B20008">%m</span>/\
 <span foreground="#9A5200">%Y</span></span></markup>'
 }}}

 In fact, it's already done[1] and works properly in XO-4 13.1.0 build 30.

 [1]
 http://translate.sugarlabs.org/es/honey/clock.po?item=4&view_mode=translate

 For the uppercase issue, I thought we could use {{{.title()}}} method but
 that is not possible because the {{{%A}}} is between specific markup. We
 should have a way to ask glibc for the name of the weekdays in uppercase
 because they are needed if the sentence starts with a weekday name. I
 would leave this as it is. If you consider this should be changed, please
 open a new bug to track this issue.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2944#comment:14>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list