Created attachment 863051 [details] screenshot of the warning Description of problem: Having to rearrange words that are encompassed in tags produces an incorrect warning message. Learning to ignore warnings is not something we wish translators to get used to Contact is Corina Roe Additional info: Book: EAP 6.2 Security Guide fr-FR - See link* below (it is huge) EN: This element declares that a component is using the <markup><role-name></markup> element's <literal>role-nameType</literal> attribute value as an argument to the <methodname>isCallerInRole(String)</methodname> method FR: Cet élément déclare que le composant utilise la valeur de l'attribut <literal>role-nameType</literal> de l'élément <markup><role-name></markup> comme argument de la méthode <methodname>isCallerInRole(String)</methodname>. Please look at attached screenshot to understand fully what is happening. Warning message is: Tags in unexpected position literal and literal The problem of tags unexpected position is reoccurring in fr-FR because of the inverted possessive. Eg: in Fr-FR, you say 'This element uses the value of the attribute of the element' In en-EN, you say 'This element uses the element's attribute value' *Direct link: https://translate.engineering.redhat.com/webtrans/Application.html?project=skynet-topics&iteration=1&localeId=fr&doc=7890-432929&doc=24152-556866&doc=21405-545448&doc=8270-432931&doc=5223-545582-46699&doc=8271-450875&doc=8269-495465&doc=9087-536638&doc=24385-550310&doc=8272-455581&doc=24406-550157&doc=7882-466868&doc=7883-432927&doc=7884-460018&doc=24191-547371&doc=24420-550356&doc=4927-471360&doc=9053-458767-46679&doc=24168-547075&doc=24436-550356&doc=9036-458786&doc=9037-490501&doc=5751-548788&doc=9038-496418&doc=21470-545448&doc=4945-480349&doc=24328-555789&doc=22641-548432&doc=6877-328380&doc=7825-468477&doc=24093-548989&doc=6879-458818&doc=24094-548934&doc=24095-549164&doc=24326-549222&doc=13893-383346&doc=4930-550325&doc=4928-460029&doc=4934-458763&doc=4694-460020&doc=4933-455587&doc=4695-539295&doc=4696-460022&doc=4937-481766&doc=6851-328492&doc=7816-328401&doc=6852-436012&doc=22639-548431&doc=7817-328449&doc=22638-548430&doc=7818-328400&doc=21440-545448&doc=4702-490493&doc=4703-537642&doc=9001-550105&doc=7819-555585&doc=4705-548800&doc=4704-458774&doc=23154-549927&doc=5945-431989&doc=4981-495476&doc=24114-559109&doc=4713-328592&doc=4722-458756&doc=24107-547960&doc=4723-458757&doc=24106-548150&doc=24105-558044&doc=4721-481770&doc=24111-549281&doc=4726-504599&doc=24380-550355&doc=24110-548401&doc=4727-328515&doc=4724-490496&doc=24109-548398&doc=4725-458760&doc=24108-547829&doc=24099-549604&doc=4730-432982&doc=23151-546772&doc=24098-549602&doc=23150-546770&doc=23149-546783&doc=24097-549282&doc=4728-460687&doc=5377-481771&doc=6881-458819&doc=24096-549176&doc=4729-328516&doc=23148-550930&doc=24103-549630&doc=24102-549625&doc=23146-549958&doc=4732-563068&doc=24101-549623&doc=23145-550867&doc=24100-549607&doc=24273-548426&doc=13955-555636&doc=5358-498084&doc=24284-558063&doc=5359-550324&doc=24287-555790&doc=24286-561316&doc=5357-458811&doc=5353-549388&doc=4765-458761&doc=4767-432892&doc=4766-460002&doc=24270-548426&doc=24271-549126&doc=6095-431984&doc=5053-490505&doc=13442-545448&doc=4782-552816&doc=8429-555586&doc=7502-460023&doc=5052-448698&doc=24310-549222&doc=8428-475245&doc=4780-458784&doc=13441-545448&doc=4781-435838&doc=8430-466979&doc=4778-435837&doc=13447-545448&doc=8424-466657&doc=4779-458781&doc=13444-548478&doc=4774-435776&doc=4775-432896&doc=4770-460004&doc=24684-562767&doc=4771-547607&doc=24685-562799&doc=4768-481778&doc=4769-460006&doc=23744-549881&doc=23745-556862&doc=4797-460007&doc=23746-549875&doc=23747-556865&doc=4795-545453&doc=23748-550077&doc=4794-455574&doc=23749-546778&doc=23750-546775&doc=23751-546311&doc=8432-431484&doc=4786-432898&doc=8433-481767&doc=7687-458762&doc=7200-458752&doc=24484-550824&doc=7199-328604&doc=228-458161&doc=24255-548426&doc=13767-458815&doc=9096-330818&doc=9089-431229-46708&doc=13768-458816&doc=CS14876-564067#view:doc;doc:24093-548989
We should be making sure HTML tags are opened, closed and nested properly, but we shouldn't prevent open/close pairs from being moved around.
Change html/xml validator to flag improper nesting of tags (i.e. more sophisticated nesting) 1. "<a>hello</a>" to "</a>hi<a>" gives error that opening and closing tags have been swapped. 2. "<a>hello <b>world</b></a>" to "<a>hi <b>world</a></b>" gives error that tags are not properly nested. 3. "<a>hello world</a>" to "<a>hi <b>world</b></a>" gives a warning about unknown tag being added (unknown tag but properly nested). 4. "world.</a><b>something</b>" to "world.<b></a>something</b>" gives error that tags are not properly nested. 5. "<a>hello</a><b>worl" to "<a>hi<b></a>worl" gives error that tags are not properly nested. 6. "<a>hello<b></a>world</b>" to "<a>hi<b></a>world</b>" gives an error that the nesting is invalid, with a note that the source was not properly nested 7. "</a></b> Hello world" to "</b></a> Hi world" gives an error that tags are not properly nested. 8. "Hello <a><b>world" to "Hi <b><a>world" gives a warning that there may be improper nesting. Note that in html5, it is valid to have opening tags for some specific elements that are not paired with closing tags (e.g. <li>), so an error is not appropriate. 9. "<a>Hello<br/>world</a>" to "<a>Hello world</a><br/>" gives a warning because the nesting has changed. Note: only add this if it is easy to add. 10. "<a>Hello<b>world</b></a>" to "<a>Hello </a><b>world</b>" gives a warning because the nesting has changed. Note: only add this if it is easy to add.
Migrated; check JIRA for bug status: http://zanata.atlassian.net/browse/ZNTA-549