← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1703827] Re: ubuntu-support-status return "TypeError: not enough arguments for format string"

 

gd.po:msgid "You have %(num)s packages (%(percent).1f%%) supported until %(time)s"
gd.po-msgstr "Tha agad % (num)s pacaidean (%(percent).1f%%) le taic gu %(time)s"

lt.po:msgid "You have %(num)s packages (%(percent).1f%%) supported until %(time)s"
lt.po-msgstr "Jūs turite %(num)s paketų (%(percent).1f %%) palaikomų iki %(time)s"

sl.po:msgid "You have %(num)s packages (%(percent).1f%%) supported until %(time)s"
sl.po-msgstr "Imate %(num) paketov (%(percent).1f%%), ki so podprti do %(time)"


** Changed in: update-manager (Ubuntu)
       Status: Confirmed => Triaged

** Summary changed:

- ubuntu-support-status return "TypeError: not enough arguments for format string"
+ ubuntu-support-status return "TypeError: not enough arguments for format string" due to bad translations

** Changed in: update-manager (Ubuntu)
     Assignee: (unassigned) => Brian Murray (brian-murray)

** Changed in: update-manager (Ubuntu)
    Milestone: None => ubuntu-17.08

** Changed in: update-manager (Ubuntu)
    Milestone: ubuntu-17.08 => ubuntu-17.07

** Also affects: update-manager (Ubuntu Xenial)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1703827

Title:
  ubuntu-support-status return "TypeError: not enough arguments for
  format string" due to bad translations

Status in update-manager package in Ubuntu:
  Triaged
Status in update-manager source package in Xenial:
  New

Bug description:
  in Ubuntu 16.04.2 LTS fresh install no upgrade from other ubuntu version. update-manager version 16.04.6.
  Running command:
  ubuntu-support-status
  Return only the error:
  "
  Traceback (most recent call last):
    File "/usr/bin/ubuntu-support-status", line 151, in <module>
      'time' : time})
  TypeError: not enough arguments for format string
  "

  Solution is to add a space in line 151 before " , so the line was:
  print(_("You have %(num)s packages (%(percent).1f%%) supported until %(time)s") % {
  and become:
  print(_("You have %(num)s packages (%(percent).1f%%) supported until %(time)s ") % {

  Notice the space after %(time)s.

  Best regards.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1703827/+subscriptions