Bug 660577 - yum cannot show localized messages in terminal
Summary: yum cannot show localized messages in terminal
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-07 07:28 UTC by Kenichi Takemura
Modified: 2014-08-04 22:03 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-12-07 14:35:14 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Kenichi Takemura 2010-12-07 07:28:08 UTC
Description of problem:

Running yum in a terminal(gnome-terminal in this case) in ja_JP locale cannot show localized messages at all.

$ echo $LANG
ja_JP.utf8
$ sudo yum list anaconda
Loaded plugins: aliases, changelog, downloadonly, protect-packages, refresh-packagekit, rhnplugin, security, tmprepo, verify, versionlock
Available Packages
anaconda.i686                                               13.21.82-1.el6                                                rhel-i386-workstation-6

$ rpm -ql yum | grep \.mo$ | grep ja | xargs msgunfmt | grep Loaded -A 2
msgid "Loaded plugins: "
msgstr "読み込んだプラグイン:"

$ rpm -ql yum | grep \.mo$ | grep ja | xargs msgunfmt | grep 'Available Packages' -A 2
msgid "Available Packages"
msgstr "利用可能なパッケージ"


Version-Release number of selected component (if applicable):
yum-3.2.27-14.el6_0.1.noarch

How reproducible:
Always

Steps to Reproduce:
1. set LANG to ja_JP.UTF-8
2. run yum list 
3.
  
Actual results:
Yum always shows English messages.

Expected results:
Yum shows translated messages if yum supports localized rendering for a language

Additional info:
No ja_JP specific. Applies to other language.

Comment 2 James Antill 2010-12-07 14:20:48 UTC
We explicitly turn localization off in RHEL yum (see i18n.py), mainly because no customer has asked for it ... and we've had a huge number of bugs, due to how python handles unicode.

Comment 3 RHEL Program Management 2010-12-07 14:35:14 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.


Note You need to log in before you can comment on or make changes to this bug.