Bug 1264235

Summary: [ru-RU][ja-JP][fr-FR][es-ES] Unable to provide common translation for <return>, tag errors
Product: [Fedora] Fedora Reporter: Noriko Mizumoto <noriko>
Component: anacondaAssignee: Anaconda Maintenance Team <anaconda-maint-list>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: anaconda-maint-list, dshea, gguerrer, g.kaviyarasu, jonathan, noriko, pahuang, sfriedma, vanmeeuwen+fedora, vtrefny, ypoyarko
Target Milestone: ---Keywords: Translation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-10-23 17:45:41 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 Noriko Mizumoto 2015-09-18 00:25:19 UTC
Description of problem:
"return" key is generally called "enter" key in Russian and Japanese. But because "return" is tagged, errors generated when it changed in the translation.
https://fedora.zanata.org/iteration/view/anaconda/master

Version-Release number of selected component (if applicable):
n/a

How reproducible:
always

Actual results:
Translating <return> as <enter> generates errors.

Expected results:
"return" is translatable as "enter", for example by removing tags 

Additional info:

Comment 1 Vojtech Trefny 2015-09-18 07:12:09 UTC
I see the same problem in Czech localization, but it actually doesn't produce an error, just a warning and I think we just could simply ignore it.

------
Warnings: 2, Error: none

    Missing tag: <return>
    Unexpected tag: <Enter>
------

The warnings don't seem to affect generated PO files:

------
#: anaconda:466
msgid ""
"\n"
"Press <return> to reboot your system.\n"
msgstr ""
"\n"
"Stisknutím tlačítka <Enter> restartujte systém.\n"
------

Comment 2 David Shea 2015-09-18 13:11:32 UTC
We had a conversation with docs and found that "Enter" is preferred over "Return" in the documentation, so we'll make the change. But where is the warning coming from? It looks like something is misinterpreting the string.

Comment 3 David Shea 2015-09-21 20:34:07 UTC
Setting needinfo for the question in comment 2.

Comment 4 Patrick Huang 2015-09-23 00:27:04 UTC
Whether Zanata show it as error or warning depends on the project/version settings. Zanata offers a range of translation validation rules. The relevant one for this particular case is "HTML/XML tags". i.e. translation string must match all the tags in source string. 

If project maintainer sets this validation rule to be "Error", any mismatch of tags in translation will generate an error in Zanata and translation can not be saved (provided the validation rule is set before translation is entered). If the validation rule is set to be "Warning", it will generate an warning but translator can still save the string. 

"HTML/XML tags" validation rule is generally more suitable to set as Error on docbook or html projects, where the tag will affect final output. If tag usage is mainly as decoration of a word, it's recommended to set as Warning so translator can choose appropriate translation.

Comment 5 David Shea 2015-10-07 14:39:20 UTC
https://github.com/rhinstaller/anaconda/pull/394 to fix the errors on the master branch. Confirmed with sbueno that F23 is set to warning.

anaconda does use a lot of XML tags in pango markup so we would like it to be validated in the translated strings.

Comment 6 David Shea 2015-10-08 14:48:55 UTC
Resetting status since this is more of a Zanata configuration issue than a string issue.

Comment 7 David Shea 2015-10-23 17:45:41 UTC
Confirmed with bcl and sbueno that our zanata configuration is set to warn about tag mis-matches, which is what we want. It will continue to warn about this one, which is the consequence of keeping the warnings about all of the actual tags in anaconda.