Bug 1372837 - [zh_CN] msgids containing "Red Hat" should NOT translate this substring
Summary: [zh_CN] msgids containing "Red Hat" should NOT translate this substring
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-02 20:37 UTC by John Sefler
Modified: 2020-12-11 10:13 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-11 10:13:37 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description John Sefler 2016-09-02 20:37:35 UTC
Description of problem:
Following the precedence from bug 906567, two occurrences were found where the term "Red Hat" should not be translated.


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


How reproducible:


Steps to Reproduce:
[root@jsefler-rhel7 ~]# msgunfmt --no-wrap /usr/share/locale/zh_CN/LC_MESSAGES/rhsm.mo | grep "Please enter your Red Hat account information" -A1
msgid "<b>Please enter your Red Hat account information:</b>"
msgstr "<b>请输入您的红帽帐户信息:</b>"    <================== FIX THIS ONE
--
msgid "Please enter your Red Hat account information:"
msgstr "请输入您的 Red Hat 帐户信息:"



[root@jsefler-rhel7 ~]# msgunfmt --no-wrap /usr/share/locale/zh_CN/LC_MESSAGES/rhsm.mo | grep "system with Red Hat to receive" -A1
msgid "This assistant will guide you through the process of registering your system with Red Hat to receive software updates and other benefits. "
msgstr "这个助手程序将为您演示一些步骤,帮助您在红帽注册系统,以便接收软件更新和其他优惠的步骤。 "    <================== FIX THIS TOO
--
msgid "This assistant will guide you through the process of registering your system with Red Hat to receive software updates and other benefits. You will need the following to register:"
msgstr "这个助手将为您演示在 Red Hat 注册系统以便接收软件更新和其他优惠的步骤。您需要以下信息方可注册:"




Actual results:
  above

Expected results:


Additional info:

Comment 1 John Sefler 2016-09-02 20:48:26 UTC
I have manually corrected the translations in Zanata.  Dev simply needs to re-pull the translations and do a new build of subscription-manager.

Comment 2 John Sefler 2016-09-07 12:55:05 UTC
The fix for this was included in subscription-manager RHEL7.3 commit...

Author: Christopher Snyder <csnyder>  2016-09-06 11:47:43
Committer: Christopher Snyder <csnyder>  2016-09-06 11:47:43
Parent: d212f95b1f5eaa88fc99de7f6948edf648ada403 (Automatic commit of package [subscription-manager] release [1.17.12-1].)
Child:  6915477432e2324d75c83c4550294be4e0ab7fa9 (Automatic commit of package [subscription-manager] release [1.17.13-1].)
Branches: RHEL7.3, remotes/origin/RHEL7.3
Follows: subscription-manager-1.17.12-1
Precedes: subscription-manager-1.17.13-1

    1340135: Updates translations, removes unnecessary whitespace

Comment 3 Rehana 2016-09-08 08:54:46 UTC
Reproducing the failure against: 
===================================

[root@localhost dev]# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.51.11-1
subscription management rules: 5.15
subscription-manager: 1.17.12-1.el7
python-rhsm: 1.17.7-1.el7


[root@localhost dev]# msgunfmt --no-wrap /usr/share/locale/zh_CN/LC_MESSAGES/rhsm.mo | grep "Please enter your Red Hat account information" -A1
msgid "<b>Please enter your Red Hat account information:</b>"
msgstr "<b>请输入您的红帽帐户信息:</b>" --> Issue (1)
--
msgid "Please enter your Red Hat account information:"
msgstr "请输入您的 Red Hat 帐户信息:"
[root@localhost dev]#  msgunfmt --no-wrap /usr/share/locale/zh_CN/LC_MESSAGES/rhsm.mo | grep "system with Red Hat to receive" -A1
msgid "This assistant will guide you through the process of registering your system with Red Hat to receive software updates and other benefits. "
msgstr "这个助手程序将为您演示一些步骤,帮助您在红帽注册系统,以便接收软件更新和其他优惠的步骤。 "
-- --- > Issue (2) 
msgid "This assistant will guide you through the process of registering your system with Red Hat to receive software updates and other benefits. You will need the following to register:"
msgstr "这个助手将为您演示在 Red Hat 注册系统以便接收软件更新和其他优惠的步骤。您需要以下信息方可注册:"


Retesting after upgrading subscription-manager to (1.17.14-1.el7)

# subscription-manager version
server type: This system is currently not registered.
subscription management server: 0.9.51.11-1
subscription management rules: 5.15
subscription-manager: 1.17.14-1.el7
python-rhsm: 1.17.9-1.el7


# msgunfmt --no-wrap /usr/share/locale/zh_CN/LC_MESSAGES/rhsm.mo | grep "Please enter your Red Hat account information" -A1
msgid "<b>Please enter your Red Hat account information:</b>"
msgstr "<b>请输入您的 Red Hat 帐户信息:</b>"===> Fixed
--
msgid "Please enter your Red Hat account information:"
msgstr "请输入您的 Red Hat 帐户信息:"

#  msgunfmt --no-wrap /usr/share/locale/zh_CN/LC_MESSAGES/rhsm.mo | grep "system with Red Hat to receive" -A1
msgid "This assistant will guide you through the process of registering your system with Red Hat to receive software updates and other benefits. "
msgstr "这个助手将为您演示在 Red Hat 注册系统以便接收软件更新和其他优惠的步骤。 " =>fixed
--
msgid "This assistant will guide you through the process of registering your system with Red Hat to receive software updates and other benefits. You will need the following to register:"
msgstr "这个助手将为您演示在 Red Hat 注册系统以便接收软件更新和其他优惠的步骤。您需要以下信息方可注册:"


Observed that now "Red Hat " is not translated. Marking as Verified !!!

Comment 5 Rehana 2020-12-11 10:13:37 UTC
Old bug clean up :
================

Closing the bug with Current release ,the bug was verified by QE during a RHEL release cycle but was not closed.


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