month name in string localized using wrong type of locale produces mixed-language message
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
synaptic (Ubuntu) |
Fix Released
|
Low
|
Jean-Baptiste Lallement |
Bug Description
Binary package hint: synaptic
In Synaptic I can see strange text such as: "Canonical provides critical updates for git-doc until juli 2011." NB: "juli", not "July" as could be expected. This is a mix of a string in English with the name of the month "July" written in my native language Swedish.
I think the reason is that synaptic looks up the name of the month using a different locale than the locale of the text. In the case of running text, where the name of the month is embedded with other text, I think it is wrong to do so.
These are my locale settings:
LANG=en_US.utf8
LANGUAGE=en_US.utf8
LC_CTYPE=sv_SE.utf8
LC_NUMERIC=
LC_TIME=sv_SE.utf8
LC_COLLATE=
LC_MONETARY=
LC_MESSAGES=
LC_PAPER=sv_SE.utf8
LC_NAME=sv_SE.utf8
LC_ADDRESS=
LC_TELEPHONE=
LC_MEASUREMENT=
LC_IDENTIFICATI
LC_ALL=
ProblemType: Bug
Architecture: amd64
Date: Sun Jan 24 13:01:20 2010
DistroRelease: Ubuntu 10.04
Package: synaptic 0.63ubuntu2
ProcVersionSign
SourcePackage: synaptic
Uname: Linux 2.6.32-11-generic x86_64
Related branches
- Michael Vogt: Pending requested
-
Diff: 5713 lines (+1626/-3446)25 files modifiedcommon/Makefile.am (+1/-1)
common/rpackagelister.cc (+199/-12)
common/rpackagelister.h (+30/-1)
common/rpackageview.cc (+24/-1)
common/rpackageview.h (+10/-5)
common/sections_trans.cc (+3/-1)
config.h.in (+3/-0)
configure.in (+13/-0)
debian/changelog (+845/-3)
debian/control (+7/-5)
debian/patches/00list.Ubuntu (+1/-0)
debian/patches/01_ubuntu_changelog.dpatch (+21/-9)
debian/patches/10_ubuntu_maintenance_gui.dpatch (+194/-0)
debian/rules (+2/-1)
debian/synaptic.dirs (+1/-0)
gtk/Makefile.am (+2/-2)
gtk/glade/window_fetch.glade (+1/-0)
gtk/glade/window_main.glade (+83/-0)
gtk/rgdebinstallprogress.cc (+18/-8)
gtk/rgmainwindow.cc (+144/-4)
gtk/rgmainwindow.h (+10/-0)
gtk/rgpkgdetails.cc (+2/-1)
gtk/rguserdialog.cc (+1/-1)
po/Makefile.in.in (+11/-12)
po/synaptic.pot (+0/-3379)
Thanks for your report.
You are right. It is because you have LC_TIME=sv_SE.utf8, it displays the date in this locale. So, it's working as expected even if it looks a bit weird.
I'm closing this report because it is not a bug in synaptic.
Don't hesitate to submit any new bug.