Comment 0 for bug 630962

Revision history for this message
David Planella (dpm) wrote :

Binary package hint: aptdaemon

The following translatable strings in the code are correctly marked for plural translation:

The following NEW package will be installed (%s):
The following package will be upgraded (%s):
The following package will be REMOVED (%s):
The following package will be DOWNGRADED (%s):
The following package will be reinstalled (%s):
The following package has been kept back (%s):

However, they use unnamed arguments (%s), which do not allow some languages such as Arabic and Hebrew to correctly translate the strings. Named arguments should be used instead (e.g. %(package)s).

The use of unnamed arguments in python plural strings is also a potential crasher, since gettext -and by extension Launchpad- does not support error checking of those.