[Bugs] #3128 UNSP: Browse I18n error

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Mon Sep 26 10:08:43 EDT 2011


#3128: Browse I18n error
------------------------------------------+---------------------------------
    Reporter:  cjl                        |          Owner:                             
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  untriaged                  |        Version:  Unspecified                
    Severity:  Unspecified                |       Keywords:                             
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
 The POT generating script is throwing a warning flag on browse

 downloadmanager.py:344: warning: 'msgid' format string with unnamed
 arguments cannot be properly localized:
                                 The translator cannot reorder the
 arguments.
                                 Please consider using a format string with
 named arguments,
                                 and a mapping instead of a tuple for the
 arguments.


 Specifically this string

 #: downloadmanager.py:344
 #, python-format
 msgid ""
 "Downloading %s from \n"
 "%s."
 msgstr ""

 Because this contains two %s variables and because the object-subject
 ordering in different languages can be different, these should be changed
 to named variables (adding whatever names would be appropriate.

 "Downloading %(page)s from \n"
 "%(website)s."

 This will allow Localizers to unambiguuosly re-order these variable
 substitutions in their language's syntax.

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


More information about the Bugs mailing list