Description of problem: When running yum in different locale settings the messages are not fully converted to current locale. For example "yum info python" displays "summary" heading in english while the actual summary text in current locale. The exactly opposite behavior can be observed on current Fedora 10 (heading in local language but the actual content in english). Steps to Reproduce: for lang in en_US de_DE pl_PL; do echo -e "\n\n$lang\n~~~~~~" LANG=$lang.UTF-8 yum info python | head -10 done Actual results on RHEL5: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ yum-3.2.19-18.el5 python-2.4.3-24.el5 en_US ~~~~~~ Installed Packages Name : python Arch : x86_64 Version : 2.4.3 Release : 24.el5 Size : 21 M Repo : installed Summary : An interpreted, interactive, object-oriented programming language. URL : http://www.python.org/ de_DE ~~~~~~ Installed Packages Name : python Arch : x86_64 Version : 2.4.3 Release : 24.el5 Size : 21 M Repo : installed Summary : Eine interpretierte, interaktive, : objektorientierteProgrammiersprache. pl_PL ~~~~~~ Installed Packages Name : python Arch : x86_64 Version : 2.4.3 Release : 24.el5 Size : 21 M Repo : installed Summary : Interpretowany, interaktywny, obiektowy język programowania. URL : http://www.python.org/ Actual results on Fedora 10: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ yum-3.2.21-2.fc10.noarch python-2.5.2-1.fc10.i386 en_US ~~~~~~ Loaded plugins: refresh-packagekit Installed Packages Name : python Arch : i386 Version : 2.5.2 Release : 1.fc10 Size : 16 M Repo : installed Summary : An interpreted, interactive, object-oriented programming language. URL : http://www.python.org/ de_DE ~~~~~~ Geladene Plugins: refresh-packagekit Installierte Pakete Name : python Architektur : i386 Version : 2.5.2 Ausgabe : 1.fc10 Grösse : 16 M Repo : installed Zusammenfassung : An interpreted, interactive, object-oriented programming : language. pl_PL ~~~~~~ Wczytane wtyczki: refresh-packagekit Zainstalowane pakiety Nazwa : python Architektura : i386 Wersja : 2.5.2 Wydanie : 1.fc10 Rozmiar : 16 M Repozytorium : installed Podsumowanie : An interpreted, interactive, object-oriented programming : language. Expected results: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Both headings and the actual content should be displayed in the current locale. The indentation should match the longest heading (and should be the same for all items; too long for PL and varying in the DE locale in the example above). Checked /usr/share/locale/*/LC_MESSAGES/yum.mo for presence of corresponding strings.
The translations of pkg metadata are a function of the specspo pkg, not of yum. Yum just handles the the headings on the left and if rpm hands back translated metadata from specspo then yum uses that.
> For example "yum info python" displays "summary" heading in english Yum in RHEL has gettext translation of messages turned off, because that's what GA did ... noone requested the feature, and python likes to die in weird corner cases when you enable it.