[Bugs] #3668 Clock UNSP: Clock has translation issues

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Jun 11 20:39:32 EDT 2012


#3668: Clock has translation issues
------------------------------------------+---------------------------------
    Reporter:  manuq                      |          Owner:  garycmartin      
        Type:  defect                     |         Status:  new              
    Priority:  Unspecified by Maintainer  |      Milestone:  0.96             
   Component:  Clock                      |        Version:  Git as of bugdate
    Severity:  Unspecified                |       Keywords:  12.1.0           
Distribution:  Unspecified                |   Status_field:  Unconfirmed      
------------------------------------------+---------------------------------

Comment(by garycmartin):

 clock.py is using pgettext for its strings so that extra context text is
 provided to the translator, this appears to be broken somewhere in the
 workflow as the context is ending up as the msgid and the actual string
 for translation is left out (it's treating the strings like gettext rather
 than pgettext).

 {{{
 from pgettext import pgettext as _
 }}}

 v.s. timewrite.py that is using the more common:

 {{{
 from gettext import gettext as _
 }}}

 I'm going to try and replace the use of pgettext, and remove all the
 context strings from clock.py, I'm fairly sure there is no real
 disambiguation needed in clock.py, but this is going to trigger a cascade
 of string fixed needed in pootle, sorry cjl!

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


More information about the Bugs mailing list