Bug 1967780

Summary: [IT] unexpected Italian translation change for msgid="proxy URL in the form of proxy_hostname:proxy_port"
Product: Red Hat Enterprise Linux 8 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: Pino Toscano <ptoscano>
Status: CLOSED ERRATA QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: low Docs Contact:
Priority: unspecified    
Version: 8.5CC: jhnidek, jwboyer, redakkan
Target Milestone: betaKeywords: EasyFix, Translation, Triaged
Target Release: 8.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: subscription-manager-1.28.19-1.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-09 19:37:58 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 John Sefler 2021-06-03 21:47:02 UTC
Description of problem:

In both the weblate subscription-manager-1-28 and subscription-manager-main branch which affects RHEL8.5 and RHEL9.0 respectfully, the following translation was changed from this...

   msgid "proxy URL in the form of proxy_hostname:proxy_port"
   msgstr "URL del proxy in formato proxy_hostname:proxy_port"
                                 ^^^^^^^^^^^^^^ ^^^^^^^^^^
to this...

   msgid "proxy URL in the form of proxy_hostname:proxy_port"
   msgstr "URL del proxy con un formato nomehost_proxy:porta_proxy"
                                     ^^^^^^^^^^^^^^ ^^^^^^^^^^^

The complaint is that "proxy_hostname:proxy_port" can be interpreted as references to the configurations in /etc/rhsm/rhsm.conf which should not be translated since they are program configurations.  For many past releases and all other non-Italian languages, the "proxy_hostname:proxy_port" substring has remained untranslated.


Version-Release number of selected component (if applicable):
[root@kvm-04-guest12 ~]# rpm -q subscription-manager
subscription-manager-1.28.16-1.el8.x86_64

How reproducible:


Steps to Reproduce:
[root@kvm-04-guest12 ~]# msgunfmt /usr/share/locale/it/LC_MESSAGES/rhsm.mo --no-wrap | grep proxy_hostname -A1
msgid "proxy URL in the form of proxy_hostname:proxy_port"
msgstr "URL del proxy con un formato nomehost_proxy:porta_proxy"


Actual results:
   "URL del proxy con un formato nomehost_proxy:porta_proxy"

Expected results:
   "URL del proxy in formato proxy_hostname:proxy_port"

Additional info:
https://translate.fedoraproject.org/translate/subscription-manager/subscription-manager-1-28/it/?checksum=5c01658e12cb825a
https://translate.fedoraproject.org/translate/subscription-manager/subscription-manager-main/it/?checksum=5c01658e12cb825a


Alternative:
Another solution is to simplify the msgid string to...
   "proxy URL in the form of address:port"
which is a little more generic than the current msgid...
   "proxy URL in the form of proxy_hostname:proxy_port"

Comment 1 John Sefler 2021-06-03 22:04:29 UTC
And here is another unexpected Italian translation change...

on RHEL8.5 and RHEL9.0...
[root@kvm-04-guest12 ~]# msgunfmt /usr/share/locale/it/LC_MESSAGES/rhsm.mo --no-wrap | grep "base URL" -A1
msgid "base URL for content in form of https://hostname:port/prefix"
msgstr "URL di base per il contenuto con un formato https://nomehost:porta/prefisso"
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
where "hostname" "port" and "prefix" are all server configurations in /etc/rhsm/rhsm.conf

on RHEL8.4 and earlier...
[root@kvm-01-guest19 ~]# msgunfmt /usr/share/locale/it/LC_MESSAGES/rhsm.mo --no-wrap | grep "base URL" -A1
msgid "base URL for content in form of https://hostname:port/prefix"
msgstr "URL di base per il contenuto con un formato https://hostname:port/prefix"
                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Comment 2 John Sefler 2021-06-04 21:57:05 UTC
(In reply to John Sefler from comment #1)

The vote during bug triage was to tolerate the url translation in comment 1 as an acceptable translation.

Comment 3 John Sefler 2021-07-15 14:38:44 UTC
Pre-verification...

[root@kvm-04-guest12 ~]# rpm -q subscription-manager
subscription-manager-1.28.19-1.el8.x86_64
[root@kvm-04-guest12 ~]# rpm -q subscription-manager --changelog | grep 1967780
- 1967780: improve placeholders in help text (ptoscano)
[root@kvm-04-guest12 ~]# 

[root@kvm-04-guest12 ~]# subscription-manager register --help | grep "PROXY_URL"
  --proxy=PROXY_URL     proxy URL in the form of hostname:port

[root@kvm-04-guest12 ~]# msgunfmt /usr/share/locale/it/LC_MESSAGES/rhsm.mo --no-wrap | grep "proxy URL" -A1
[root@kvm-04-guest12 ~]# 


PRE-VERIFIED: The msgid has been changed from "proxy URL in the form of proxy_hostname:proxy_port" to a more generic string "proxy URL in the form of hostname:port" and will require new translations for all the supported languages (this pre-verified build does not include Italian translations for this string and will handled by bug 1944093)


------------------------

[root@kvm-04-guest12 ~]# subscription-manager register --help | grep -A1 "base URL"
  --baseurl=BASE_URL    base URL for content in form of
                        https://hostname:port/prefix
[root@kvm-04-guest12 ~]# 
[root@kvm-04-guest12 ~]# msgunfmt /usr/share/locale/it/LC_MESSAGES/rhsm.mo --no-wrap | grep "base URL" -A1
msgid "base URL for content in form of https://hostname:port/prefix"
msgstr "URL di base per il contenuto con un formato https://nomehost:porta/prefisso"
[root@kvm-04-guest12 ~]# 

PRE-VERIFIED: The msgid and translation referenced in comment 1 remains unchanged as voted in comment 2

Comment 6 Rehana 2021-07-16 12:47:29 UTC
Verifying on :
=============

# subscription-manager version
server type: This system is currently not registered.
subscription management server: 3.2.19-1
subscription management rules: 5.41
subscription-manager: 1.28.19-1.el8

# rpm -q subscription-manager --changelog | grep 1967780
- 1967780: improve placeholders in help text (ptoscano)

# subscription-manager register --help | grep "PROXY_URL"
  --proxy=PROXY_URL     proxy URL in the form of hostname:port --> New message 

# msgunfmt /usr/share/locale/it/LC_MESSAGES/rhsm.mo --no-wrap | grep "proxy URL" -A1
#

# subscription-manager register --help | grep -A1 "base URL"
  --baseurl=BASE_URL    base URL for content in form of
                        https://hostname:port/prefix

# msgunfmt /usr/share/locale/it/LC_MESSAGES/rhsm.mo --no-wrap | grep "base URL" -A1
msgid "base URL for content in form of https://hostname:port/prefix"
msgstr "URL di base per il contenuto con un formato https://nomehost:porta/prefisso"

Moving the bug to Verified!!

Comment 8 errata-xmlrpc 2021-11-09 19:37:58 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 and enhancement 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-2021:4390