RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1520648 - Subscription manager ignores variants of locale
Summary: Subscription manager ignores variants of locale
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.4
Hardware: All
OS: Linux
medium
low
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-04 21:30 UTC by Jiri Hnidek
Modified: 2020-09-29 19:22 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-09-29 19:22:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github candlepin subscription-manager pull 1778 0 None closed Update zanata config 2020-04-15 12:20:53 UTC
Red Hat Product Errata RHBA-2020:3866 0 None None None 2020-09-29 19:22:58 UTC

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


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