Ticket #3201 (closed defect: fixed)
Record i18n errors
| Reported by: | cjl | Owned by: | dsd |
|---|---|---|---|
| Priority: | Unspecified by Maintainer | Milestone: | Unspecified by Release Team |
| Component: | Record | Version: | Unspecified |
| Severity: | Unspecified | Keywords: | |
| Cc: | RafaelOrtiz | Distribution/OS: | Unspecified |
| Bug Status: | Unconfirmed |
Description
The POT generating cron job is throwing errors on several strings that have more than one variable substitution. Changing to named variables would fix this error and make it possible for localizers to unambiguously translate these strings.
####### Checking POT for record (master) ######
Already up-to-date.
glive.py:396: 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.
model.py:183: 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.
model.py:384: 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.
+++++++++++++++++++++++++++++
#: glive.py:397 model.py:355
#, python-format
msgid "%s by %s"
msgstr ""
glive.py
395 # Translators: photo by photographer, e.g. "Photo by Mary"
396 tl[gst.TAG_TITLE] = _('%s by %s') % (stringType, self.model.get_nickname())
397 return tl
model.py
383 # Translators: photo by photographer, e.g. "Photo by Mary"
384 recd.title = _('%s by %s') % (stringType, recd.recorderName)
+++++++++++++++++++++++++++++
#: model.py:154
#, python-format
msgid "%d:%02d remaining"
msgstr ""
181 mins = value / 60
182 secs = value % 60
183 text = _('%d:%02d remaining') % (mins, secs)
+++++++++++++++++++++++++++++
