Ticket #3128 (closed defect: obsolete)

Opened 20 months ago

Last modified 13 months ago

Browse I18n error

Reported by: cjl Owned by: lucian
Priority: Unspecified by Maintainer Milestone: Unspecified by Release Team
Component: Browse Version: Unspecified
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

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.

Change History

Changed 20 months ago by cjl

  • owner set to lucian
  • component changed from untriaged to Browse

Changed 13 months ago by humitos

  • status changed from new to closed
  • resolution set to obsolete
Note: See TracTickets for help on using tickets.