Bug 660577

Summary: yum cannot show localized messages in terminal
Product: Red Hat Enterprise Linux 6 Reporter: Kenichi Takemura <ktakemur>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: ebaak
Target Milestone: rcKeywords: i18n
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-07 14:35:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.