← Back to team overview

ubuntu-translations-coordinators team mailing list archive

[Bug 1033622] Re: KeyError: 'temps'

 

Thanks for your report. I confirm this bug on Quantal with French. This is because the variable names have been translated in the po file
msgid "You have %(num)s packages (%(percent).1f%%) supported until %(time)s"
msgstr ""
"Vous avez %(num)s paquets (%(percent).1f%%) pris en charge jusqu'à %(temps)s"

I found the same error for another string:
msgid "You have %(num)s packages (%(percent).1f%%) that are unsupported"
msgstr ""
"Vous avez %(num)s paquets (%(pour cent).1f%%) qui ne sont pas pris en charge"


** Changed in: update-manager (Ubuntu)
   Importance: Undecided => High

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

** Tags added: rls-q-incoming

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

** Summary changed:

- KeyError: 'temps'
+ ubuntu-support-status crashes with: File "/usr/bin/ubuntu-support-status", line 148, in <module>  'time' : time}) KeyError: 'temps' - in French

** Description changed:

+ [TEST CASE]
+ 1. Install French language pack
+ 2. export LANGUAGE=fr_FR:en LANG=fr_FR.UTF-8
+ 3. In a terminal run: 
+   $ ubuntu-support-status
+ 
+ [ACTUAL RESULT]
  pierre@pierre-MacBook:~$ ubuntu-support-status
  Résumé de l'état du support de 'pierre-MacBook':
  
  Traceback (most recent call last):
-   File "/usr/bin/ubuntu-support-status", line 136, in <module>
-     'time' : time}
+   File "/usr/bin/ubuntu-support-status", line 136, in <module>
+     'time' : time}
  KeyError: 'temps'
+ 
+ [EXPECTED RESULT]
+ Support status is displayed with no crash
  
  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: update-manager-core 1:0.156.14.6
  ProcVersionSignature: Ubuntu 3.2.0-27.43-generic-pae 3.2.21
  Uname: Linux 3.2.0-27-generic-pae i686
  ApportVersion: 2.0.1-0ubuntu11
  Architecture: i386
  Date: Mon Aug  6 20:55:21 2012
  ProcEnviron:
-  LANGUAGE=fr_FR:en
-  TERM=xterm
-  PATH=(custom, no user)
-  LANG=fr_FR.UTF-8
-  SHELL=/bin/bash
+  LANGUAGE=fr_FR:en
+  TERM=xterm
+  PATH=(custom, no user)
+  LANG=fr_FR.UTF-8
+  SHELL=/bin/bash
  SourcePackage: update-manager
  UpgradeStatus: Upgraded to precise on 2012-04-27 (101 days ago)

** Also affects: ubuntu-translations
   Importance: Undecided
       Status: New

-- 
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/1033622

Title:
  ubuntu-support-status crashes with: File "/usr/bin/ubuntu-support-
  status", line 148, in <module>  'time' : time}) KeyError: 'temps' - in
  French

Status in Ubuntu Translations:
  New
Status in “update-manager” package in Ubuntu:
  Triaged
Status in “update-manager” source package in Precise:
  New

Bug description:
  [TEST CASE]
  1. Install French language pack
  2. export LANGUAGE=fr_FR:en LANG=fr_FR.UTF-8
  3. In a terminal run: 
    $ ubuntu-support-status

  [ACTUAL RESULT]
  pierre@pierre-MacBook:~$ ubuntu-support-status
  Résumé de l'état du support de 'pierre-MacBook':

  Traceback (most recent call last):
    File "/usr/bin/ubuntu-support-status", line 136, in <module>
      'time' : time}
  KeyError: 'temps'

  [EXPECTED RESULT]
  Support status is displayed with no crash

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: update-manager-core 1:0.156.14.6
  ProcVersionSignature: Ubuntu 3.2.0-27.43-generic-pae 3.2.21
  Uname: Linux 3.2.0-27-generic-pae i686
  ApportVersion: 2.0.1-0ubuntu11
  Architecture: i386
  Date: Mon Aug  6 20:55:21 2012
  ProcEnviron:
   LANGUAGE=fr_FR:en
   TERM=xterm
   PATH=(custom, no user)
   LANG=fr_FR.UTF-8
   SHELL=/bin/bash
  SourcePackage: update-manager
  UpgradeStatus: Upgraded to precise on 2012-04-27 (101 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-translations/+bug/1033622/+subscriptions