[lucid] program crashes when string "%s ago" is displayed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
language-pack-sk (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
update-manager (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: update-manager
pk@pk-laptop:~$ update-manager
Traceback (most recent call last):
File "/usr/bin/
app.
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
if self._get_
File "/usr/lib/
ago_hours) % ago_hours
TypeError: not all arguments converted during string formatting
we don't have "1 hour ago" but "a hour ago", or "1 day ago" => "yesterday"
but when "%s" is missing, update-manager crashes on startup
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: update-manager 1:0.134.7
ProcVersionSign
Uname: Linux 2.6.32-21-generic x86_64
Architecture: amd64
Date: Sat Apr 24 18:08:42 2010
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release amd64 (20091027)
PackageArchitec
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=sk_SK.utf8
SHELL=/bin/bash
SourcePackage: update-manager
Changed in update-manager (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Fix Committed |
tags: | added: patch |
Changed in language-pack-sk (Ubuntu): | |
status: | New → Fix Released |
Sorry if I'm doing this all wrong, I'm new to Python, Ubuntu Bugfixes, and Interface/ Translation things. And this is all of the above. I believe this is not only a valid problem, but also that the proposed translation is better than what we have now in English.
It seems silly to pass a format parameter where you know it is 1 to begin with, but this patch introduces a new problem: If this would be accepted (and fixed, I'm sure I messed something up somewhere), it would need new translations too, because now we lost the %S that broke SK_sk, but that most other languages probably depend on.