Bug 1417731

Summary: [ko][pt_BR] pofilter endwhitespace test fails for subscription-manager 1.18.X
Product: Red Hat Enterprise Linux 6 Reporter: John Sefler <jsefler>
Component: subscription-managerAssignee: vritant <vrjain>
Status: CLOSED ERRATA QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.9CC: redakkan, skallesh, tlavigne, vrjain
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-21 10:58:05 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 2017-01-30 19:22:31 UTC
Description of problem:
After the translation team worked on Bug 1391681, the following pofilter endwhitespace tests are failing...

Version-Release number of selected component (if applicable):
[root@bkr-hv03-guest24 ~]# rpm -q subscription-manager
subscription-manager-1.18.8-1.el6.x86_64
https://translate.zanata.org/iteration/view/subscription-manager/1.18.X

How reproducible:
always

Comment 1 John Sefler 2017-01-30 19:23:20 UTC
For an explanation of pofilter test 'endwhitespace', see: http://translate.sourceforge.net/wiki/toolkit/pofilter_tests
ssh root.redhat.com pofilter --gnome -t endwhitespace /usr/share/locale/ko/LC_MESSAGES/rhsm.po
Stdout:
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-20 04:05-0500\n"
"PO-Revision-Date: 2017-01-08 08:35-0500\n"
"Last-Translator: eukim <eukim>\n"
"Language-Team: Korean\n"
"Language: ko\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0\n"
"X-Generator: Zanata 3.9.6\n"

# (pofilter) endwhitespace: Different whitespace at the end
msgid "%s: file not found."
msgstr "%s: 파일을 찾을 수 없습니다. "

# (pofilter) endwhitespace: Different whitespace at the end
msgid "Derived Products:"
msgstr "파생 제품: "

# (pofilter) endwhitespace: Different whitespace at the end
msgid "Error: You must specify an override name with --remove."
msgstr "오류: -remove로 덮어쓰기 이름을 지정해야 합니다. "

# (pofilter) endwhitespace: Different whitespace at the end
msgid "The --remove-rhn-packages and --keep options cannot be used together."
msgstr " --remove-rhn-packages 및 --keep 옵션은 동시에 사용할 수 없습니다. "

# (pofilter) endwhitespace: Different whitespace at the end
msgid "The --remove-rhn-packages option must be used with --registration-state=purge."
msgstr "--remove-rhn-packages 옵션은 --registration-state=purge로 사용해야 합니다. "

# (pofilter) endwhitespace: Different whitespace at the end
msgid "Validating connection"
msgstr "연결 확인 중 "

# (pofilter) endwhitespace: Different whitespace at the end
msgid "remove legacy packages"
msgstr "기존 패키지 삭제 "
Stderr:
processing 1 files...
[###########################################] 100%
ExitCode: 0
Asserted: Actual value of '0' matches expected value: Successfully executed the pofilter tests.
Test Failed: subscriptionManagerPofilter_Test
Test Failed: subscriptionManagerPofilter_Test
Test Failed: subscriptionManagerPofilter_Test
java.lang.AssertionError: Discounting the ignored test results, the number of failed pofilter 'endwhitespace' tests for translation file '/usr/share/locale/ko/LC_MESSAGES/rhsm.mo'. expected:<0> but was:<7>

Comment 2 John Sefler 2017-01-30 19:24:03 UTC
For an explanation of pofilter test 'endwhitespace', see: http://translate.sourceforge.net/wiki/toolkit/pofilter_tests
ssh root.redhat.com pofilter --gnome -t endwhitespace /usr/share/locale/pt_BR/LC_MESSAGES/rhsm.po
Stdout:
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-20 04:05-0500\n"
"PO-Revision-Date: 2017-01-05 12:40-0500\n"
"Last-Translator: Andrea Dallape <adallape>\n"
"Language-Team: Portuguese (Brazil)\n"
"Language: pt-BR\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"X-Generator: Zanata 3.9.6\n"

# (pofilter) endwhitespace: Different whitespace at the end
msgid "Error: You must specify an override name with --remove."
msgstr "Erro: É necessário especificar um nome de substituição com --remove. "

# (pofilter) endwhitespace: Different whitespace at the end
msgid "_Password:"
msgstr "_Senha: "
Stderr:
processing 1 files...
[###########################################] 100%
ExitCode: 0
Asserted: Actual value of '0' matches expected value: Successfully executed the pofilter tests.
Test Failed: subscriptionManagerPofilter_Test
Test Failed: subscriptionManagerPofilter_Test
Test Failed: subscriptionManagerPofilter_Test
java.lang.AssertionError: Discounting the ignored test results, the number of failed pofilter 'endwhitespace' tests for translation file '/usr/share/locale/pt_BR/LC_MESSAGES/rhsm.mo'. expected:<0> but was:<2>

Comment 3 John Sefler 2017-01-30 19:35:58 UTC
I have updated Zanata project 1.18.X for the failed translations for 'endwhitespace' tests against both [ko] and [pt_BR].

Devel team simply needs to re-pull the translations from https://translate.zanata.org/iteration/view/subscription-manager/1.18.X

Comment 5 John Sefler 2017-02-01 17:37:41 UTC
Verifying Version....
[root@jsefler-rhel6 ~]# rpm -q subscription-manager
subscription-manager-1.18.9-1.el6.x86_64


[root@jsefler-rhel6 ~]# msgunfmt --no-wrap /usr/share/locale/ko/LC_MESSAGES/rhsm.mo -o /usr/share/locale/ko/LC_MESSAGES/rhsm.po
[root@jsefler-rhel6 ~]# pofilter --gnome -t endwhitespace /usr/share/locale/ko/LC_MESSAGES/rhsm.po
processing 1 files...
[###########################################] 100%
[root@jsefler-rhel6 ~]# 

VERIFIED: all [ko] pofilter endwhitespace test are passing



[root@jsefler-rhel6 ~]# msgunfmt --no-wrap /usr/share/locale/pt_BR/LC_MESSAGES/rhsm.mo -o /usr/share/locale/pt_BR/LC_MESSAGES/rhsm.po
[root@jsefler-rhel6 ~]# pofilter --gnome -t endwhitespace /usr/share/locale/pt_BR/LC_MESSAGES/rhsm.po
processing 1 files...
[###########################################] 100%
[root@jsefler-rhel6 ~]# 

VERIFIED: all [pt_BR] pofilter endwhitespace test are passing

Comment 7 errata-xmlrpc 2017-03-21 10:58:05 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, 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://rhn.redhat.com/errata/RHSA-2017-0698.html