Bug 1372839 - [pt_BR][it] msgids containing "subscription-manager" should NOT translate this substring
Summary: [pt_BR][it] msgids containing "subscription-manager" should NOT translate thi...
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 21:03 UTC by John Sefler
Modified: 2020-12-11 10:20 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:20:36 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description John Sefler 2016-09-02 21:03:27 UTC
Description of problem:
Following the precedence from bug 906552, two occurrences were found where the term "Red Hat" should not be translated.

201609021559:00.425 - WARNING: Substring "subscription-manager" should remain untranslated in the /usr/share/locale/pt_BR/LC_MESSAGES/rhsm.mo translation: msgid='This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.' msgstr='Este sistema não está registrado no Red Hat Subscription Management. Você pode usar o gerenciador de subscrições para registrar.   ' (rhsm.cli.tests.TranslationTests.VerifyTranslationsDoNotTranslateSubStrings_Test)
201609021559:00.425 - WARNING: Substring "subscription-manager" should remain untranslated in the /usr/share/locale/pt_BR/LC_MESSAGES/rhsm.mo translation: msgid='This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions.' msgstr='Este sistema está registrado no Red Hat Subscription Management, porém não está recebendo atualizações. Você pode usar o gerenciador de subscrições para designar subscrições.' (rhsm.cli.tests.TranslationTests.VerifyTranslationsDoNotTranslateSubStrings_Test)


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/pt_BR/LC_MESSAGES/rhsm.mo | grep "use subscription-manager" -A1
msgid "This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."
msgstr "Este sistema não está registrado no Red Hat Subscription Management. Você pode usar o gerenciador de subscrições para registrar.   "
--
msgid "This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions."
msgstr "Este sistema está registrado no Red Hat Subscription Management, porém não está recebendo atualizações. Você pode usar o gerenciador de subscrições para designar subscrições."


Actual results:
  above

Expected results:
  the value for both msgstr should contain "subscription-manager", not "gerenciador de subscrições"

Additional info:

Comment 1 John Sefler 2016-09-02 21:03:58 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-02 21:11:27 UTC
Same error in Italian too...

[root@jsefler-rhel7 ~]# msgunfmt --no-wrap /usr/share/locale/it/LC_MESSAGES/rhsm.mo | grep "use subscription-manager" -A1
msgid "This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."
msgstr "Questo sistema non è registrato a Red Hat Subscription Management. È possibile utilizzare Subscription Manager per effettuare la registrazione."
--
msgid "This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions."
msgstr "Questo sistema è registrato a Red Hat Subscription Management, ma non sta ricevendo gli aggiornamenti. È possibile utilizzare Subscription Manager per assegnare le sottoscrizioni."

Comment 3 John Sefler 2016-09-07 12:54:01 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 4 Rehana 2016-09-08 09:04:11 UTC
Reproducing the failure against :

# 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

Case 1 ) 
========
# msgunfmt --no-wrap /usr/share/locale/pt_BR/LC_MESSAGES/rhsm.mo | grep "use subscription-manager" -A1msgid "This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."
msgstr "Este sistema não está registrado no Red Hat Subscription Management. Você pode usar o gerenciador de subscrições para registrar.   "
--
msgid "This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions."
msgstr "Este sistema está registrado no Red Hat Subscription Management, porém não está recebendo atualizações. Você pode usar o gerenciador de subscrições para designar subscrições."

Case 2 ) 
=========
#  msgunfmt --no-wrap /usr/share/locale/it/LC_MESSAGES/rhsm.mo | grep "use subscription-manager" -A1msgid "This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."
msgstr "Questo sistema non è registrato a Red Hat Subscription Management. È possibile utilizzare Subscription Manager per effettuare la registrazione."
--
msgid "This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions."
msgstr "Questo sistema è registrato a Red Hat Subscription Management, ma non sta ricevendo gli aggiornamenti. È possibile utilizzare Subscription Manager per assegnare le sottoscrizioni."


Retesting with updated subscription-manaager packages :

subscription-manager: 1.17.14-1.el7
python-rhsm: 1.17.9-1.el7


Fix 1 )
=========
# msgunfmt --no-wrap /usr/share/locale/pt_BR/LC_MESSAGES/rhsm.mo | grep "use subscription-manager" -A1
msgid "This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."
msgstr "Este sistema não está registrado no Red Hat Subscription Management. Você pode usar o subscription-manager para registrar."
--
msgid "This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions."
msgstr "Este sistema está registrado no Red Hat Subscription Management, porém não está recebendo atualizações. Você pode usar o subscription-manager para designar subscrições.

Fix 2 )
========
#  msgunfmt --no-wrap /usr/share/locale/it/LC_MESSAGES/rhsm.mo | grep "use subscription-manager" -A1
msgid "This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register."
msgstr "Questo sistema non è registrato a Red Hat Subscription Management. È possibile utilizzare subscription-manager per effettuare la registrazione."
--
msgid "This system is registered to Red Hat Subscription Management, but is not receiving updates. You can use subscription-manager to assign subscriptions."
msgstr "Questo sistema è registrato a Red Hat Subscription Management, ma non sta ricevendo gli aggiornamenti. È possibile utilizzare subscription-manager per assegnare le sottoscrizioni."


Marking as Verified !!

Comment 6 Rehana 2020-12-11 10:20:36 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.