← Back to team overview

ubuntu-translations-coordinators team mailing list archive

[Bug 630962] Re: Use named arguments for translatable plural strings

 

** Branch unlinked: lp:aptdaemon

-- 
You received this bug notification because you are a member of Ubuntu
Translations Coordinators, which is subscribed to Ubuntu Translations.
Matching subscriptions: Ubuntu Translations bug mail
https://bugs.launchpad.net/bugs/630962

Title:
  Use named arguments for translatable plural strings

Status in Aptdaemon:
  Confirmed
Status in Ubuntu Translations:
  Fix Released
Status in “aptdaemon” package in Ubuntu:
  Confirmed

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/aptdaemon/+bug/630962/+subscriptions