Bug 1520648

Summary: Subscription manager ignores variants of locale
Product: Red Hat Enterprise Linux 7 Reporter: Jiri Hnidek <jhnidek>
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: medium    
Version: 7.4CC: cdonnell, jhnidek, jsefler, khowell, skallesh, wpoteat
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 19:22:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Hnidek 2017-12-04 21:30:46 UTC
Description of problem:
When user do not use main version of locale (e.g. "de_DE.UTF-8" is not used), but user is e.g. from Austria and code of locale is "de_AT.UTF-8), then localization for Germany language is ignored.

Version-Release number of selected component (if applicable):
subscription-manager: 1.20.7-1.el7

How reproducible:
Always

Steps to Reproduce:
1. Set environment variable LC_ALL (use supported locale)
[root@server ~]# export LC_ALL="de_DE.UTF-8"

2. Execute subscription-manager with some subcommand:
[root@server ~]# subscription-manager identity 
Systemidentität: e99aa52a-9d0b-453f-aa5c-8cd8da7919d3 <=== translated string
Name: centos7.subman.example.com
Organisationsname: Admin Owner
Organisations-ID: admin

3. Set environment variable LC_ALL (use some variant of supported locale, e.g. code for Austria)
[root@server ~]# export LC_ALL="de_AT.UTF-8"

4. Execute subscription-manager with some subcommand
[root@server ~]# subscription-manager identity

Actual results:
String of output are not translated:

system identity: e99aa52a-9d0b-453f-aa5c-8cd8da7919d3
name: centos7.subman.example.com
org name: Admin Owner
org ID: admin


Expected results:
Translated strings (same as in step 2)


Additional info:

Comment 2 Kevin Howell 2017-12-07 15:36:23 UTC
Note: looks like we have zanata misconfigured. We can probably for German, use de, instead of de_DE... then things will probably work properly. (same for Spanish, possibly same for Portugese?) Katello uses es, de, pt-BR...

Comment 5 Kevin Howell 2018-04-04 20:50:15 UTC
commit 8b512b06526ed3387fa0c3481670c88bab15b9d1
Author: Kevin Howell <khowell>
Date:   Tue Jan 30 16:44:08 2018 -0500

    Update zanata config
    
    We're removing the project version, as the release nanny tooling has
    been updated to specify --project-version based on the latest releaser.
    
    The configured languages are also tweaked.
    
    Also, the zanata instance we're using has changed.
    
    See also candlepin/candlepin#1832

Comment 8 Shwetha Kallesh 2020-04-15 12:24:07 UTC
Verification:
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager version
Servertyp: Red Hat Subscription Management
Subscription-Management-Server: 2.9.21-1
Subscription-Management-Regeln: 5.37
subscription-manager: 1.24.32


[root@hpe-dl380pgen8-02-vm-4 ~]# export LC_ALL="de_DE.UTF-8"
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager identity
Systemidentität: 1634f5cc-1f30-4668-aa3d-c2ca25345717
Name: hpe-dl380pgen8-02-vm-4.hpe2.lab.eng.bos.redhat.com
Organisationsname: Quality Assurance
Organisations-ID: 711497


[root@hpe-dl380pgen8-02-vm-4 ~]# export LC_ALL="de_AT.UTF-8"
[root@hpe-dl380pgen8-02-vm-4 ~]# subscription-manager identity
Systemidentität: 1634f5cc-1f30-4668-aa3d-c2ca25345717
Name: hpe-dl380pgen8-02-vm-4.hpe2.lab.eng.bos.redhat.com
Organisationsname: Quality Assurance
Organisations-ID: 711497

Comment 10 errata-xmlrpc 2020-09-29 19:22:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (subscription-manager bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3866