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 1074568 - help msgstr "show this help message and exit" and "Options" is not renderring as translated in all locales
Summary: help msgstr "show this help message and exit" and "Options" is not renderring...
Keywords:
Status: CLOSED DUPLICATE of bug 1020474
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Carter Kozak
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks: rhsm-rhel70
TreeView+ depends on / blocked
 
Reported: 2014-03-10 14:54 UTC by John Sefler
Modified: 2014-09-15 00:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-19 16:45:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description John Sefler 2014-03-10 14:54:39 UTC
Description of problem:
The strings for "Options" and "show this help message and exit" that appear in all the "subscription-manager MODULE-NAME --help" commands is not renderring as translated.  This is strange because these strings exist as translated in the rhsm.mo files.


Version-Release number of selected component (if applicable):
[root@jsefler-7 ~]# rpm -q subscription-manager
subscription-manager-1.10.14-4.el7.x86_64

How reproducible:


Steps to Reproduce:

[root@jsefler-7 ~]# for L in de_DE es_ES fr_FR it_IT ja_JP ko_KR pt_BR ru_RU zh_CN zh_TW as_IN bn_IN hi_IN mr_IN gu_IN kn_IN ml_IN or_IN pa_IN ta_IN te_IN; do echo ""; echo "# LANG=$L.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'"; LANG=$L.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'; done;

# LANG=de_DE.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=es_ES.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=fr_FR.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=it_IT.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=ja_JP.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=ko_KR.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=pt_BR.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=ru_RU.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=zh_CN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=zh_TW.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=as_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=bn_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=hi_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=mr_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=gu_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=kn_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=ml_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=or_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=pa_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=ta_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit

# LANG=te_IN.UTF-8 subscription-manager clean --help | grep -B1 -- '-h, --help'
Options:
  -h, --help  show this help message and exit



Actual results:
above

Expected results:
each of the lines above should show their respective locale translations



Additional info:
[root@jsefler-7 ~]# msgunfmt --no-wrap /usr/share/locale/zh_TW/LC_MESSAGES/rhsm.mo | grep '"Options"' -A1
msgid "Options"
msgstr "選項"
[root@jsefler-7 ~]# msgunfmt --no-wrap /usr/share/locale/zh_TW/LC_MESSAGES/rhsm.mo | grep "show this help message and exit" -A1
msgid "show this help message and exit"
msgstr "顯示此協助訊息並退出"

^^ Evidence that these msgstr exist in the translation files.

Comment 2 Carter Kozak 2014-03-19 16:43:43 UTC
commit 343dfb30661d9e8ed1241d2bb3e0cb487c72e4ec
Author: ckozak <ckozak>
Date:   Tue Mar 11 11:24:48 2014 -0400

    1074568: Use our translations in optparser

Comment 3 Carter Kozak 2014-03-19 16:45:04 UTC

*** This bug has been marked as a duplicate of bug 1020474 ***


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