diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 19:33:14 +0000 |
commit | 36d22d82aa202bb199967e9512281e9a53db42c9 (patch) | |
tree | 105e8c98ddea1c1e4784a60a5a6410fa416be2de /testing/web-platform/tests/conformance-checkers/html-its/localizationnote | |
parent | Initial commit. (diff) | |
download | firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip |
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/localizationnote')
29 files changed, 434 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1html.html new file mode 100644 index 0000000000..80dcb4304e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1html.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>Example</title> + <link href="locnote1htmlrules.xml" rel="its-rules"> + </head> + <body> + <span id="DisableInfo">The {0} has been disabled.</span> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1htmlrules.xml new file mode 100644 index 0000000000..87b8415aac --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote1htmlrules.xml @@ -0,0 +1,7 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> +<its:locNoteRule locNoteType="alert" selector="//h:span[@id='DisableInfo']"> +<its:locNote> +The variable {0} has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2html.html new file mode 100644 index 0000000000..ba74660628 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2html.html @@ -0,0 +1,22 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>Example</title> + <link href="locnote2htmlrules.xml" rel="its-rules"> + </head> + <body> + <section id="FileNotFound"> + <h2>FileNotFound</h2> + <p> + Indicates that the resource file {0} could not be loaded. + </p> + <span>Cannot find the file {0}.</span> + </section> + <section id="DivByZero"> + <h2>FileNotFound</h2> + <p>A division by 0 was going to be computed.</p> + <span>Invalid parameter.</span> + </section> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2htmlrules.xml new file mode 100644 index 0000000000..2da2d203e9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote2htmlrules.xml @@ -0,0 +1,4 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> +<its:translateRule selector="//h:section/h:p" translate="no"/> +<its:locNoteRule locNoteType="description" selector="//h:section/h:span" locNotePointer="../h:p"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3html.html new file mode 100644 index 0000000000..0f60fd02e5 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3html.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="locnote3htmlrules.xml" rel="its-rules"> + </head> + <body> + <span id="NotFound">Cannot find {0} on {1}.</span> + </body> + </html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3htmlrules.xml new file mode 100644 index 0000000000..898225e430 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote3htmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> +<its:locNoteRule locNoteType="description" selector="//h:span[@id='NotFound']" locNoteRef="ErrorsInfo.html/#NotFound"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4html.html new file mode 100644 index 0000000000..9b25c07f26 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="locnote4htmlrules.xml" rel="its-rules"> + </head> + <body> + <p id="FileNotFound" title="Comments.html#FileNotFound"> + <span>Cannot find the file {0}.</span> + </p> + <p id="DivByZero" title="Comments.html#DivByZero"> + <span>Invalid parameter.</span> + </p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4htmlrules.xml new file mode 100644 index 0000000000..2e0f1173e0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote4htmlrules.xml @@ -0,0 +1,3 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> +<its:locNoteRule locNoteType="description" selector="//h:body/h:p/h:span" locNoteRefPointer="../@title"/> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5html.html new file mode 100644 index 0000000000..81db733a6a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <link href="locnote5htmlrules.xml" rel="its-rules"> + <title>EXAMPLE</title> + </head> + <body> + <p id="1"> + This is a hippoptamus: + <img src="hippo.png" alt="Hippo in the Chobe River"> + . + </p> + <p id="2"> + This is an elephant: + <img src="elephants.png" alt="Elephants taking a mud bath"> + . + </p> + <p id="DisableInfo">The {0} has been disabled.</p> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5htmlrules.xml new file mode 100644 index 0000000000..c9d00868a2 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote5htmlrules.xml @@ -0,0 +1,15 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> +<its:locNoteRule selector="//h:p[@id='1']/h:img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//h:p[@id='2']/h:img/@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//h:p[@id='DisableInfo']"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6html.html new file mode 100644 index 0000000000..2757da4e6a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="locnote6htmlrules.xml" rel="its-rules"> + </head> + <body> + <span id="1"> + This is a hippoptamus: + <img src="hippo.png" alt="Hippo in the Chobe River"> + . + </span> + <span id="2"> + This is an elephant: + <img src="elephants.png" alt="Elephants taking a mud bath"> + . + </span> + <span id="DisableInfo">The {0} has been disabled.</span> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6htmlrules.xml new file mode 100644 index 0000000000..d8a1ee4a70 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote6htmlrules.xml @@ -0,0 +1,15 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> +<its:locNoteRule selector="//@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//h:span[@id='1']/h:img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//h:span[@id='DisableInfo']"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote7html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote7html.html new file mode 100644 index 0000000000..4741c323d7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote7html.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset=utf-8> + <title>LocNote test: Default</title> + </head> + <body> + <p>This is a <span its-loc-note="Check with terminology engineer" its-loc-note-type="ALERT">motherboard</span>.</p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8html.html new file mode 100644 index 0000000000..4b019c1526 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> + <html> + <head> + <meta charset=utf-8> + <title>EXAMPLE</title> + <link href="locnote8htmlrules.xml" rel="its-rules"> + </head> + <body> + <span id="1"> + This is a hippoptamus: + <img src="hippo.png" alt="Hippo in the Chobe River"> + . + </span> + <span id="2"> + This is an elephant: + <img src="elephants.png" alt="Elephants taking a mud bath"> + . + </span> + <span id="DisableInfo">The {0} has been disabled.</span> + </body> + </html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8htmlrules.xml new file mode 100644 index 0000000000..7d6c81f1ed --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote8htmlrules.xml @@ -0,0 +1,16 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> +<its:param name="spanIdParam">DisableInfo</its:param> +<its:locNoteRule selector="//@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//h:span[@id='1']/h:img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//h:span[@id=$spanIdParam]"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote9html.html b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote9html.html new file mode 100644 index 0000000000..9adbbcd23e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/html/locnote9html.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang=en> + <head> +<script type="application/its+xml"> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:param name="locnoteparam">DisableInfo</its:param> + <its:locNoteRule locNoteType="alert" selector="//h:p[@id=$locnoteparam]"> + <its:locNote>The variable {0} has three possible values: 'printer', + 'stacker' and 'stapler options'.</its:locNote> + </its:locNoteRule> + </its:rules> +</script> + <meta charset=utf-8> + <title>Example</title> + </head> +<body> + <p id="DisableInfo">The {0} has been disabled.</p> + </body> +</html> + diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote10xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote10xml.xml new file mode 100644 index 0000000000..aefe57b3a7 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote10xml.xml @@ -0,0 +1,33 @@ +<msgList> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="DisableInfoParam">DisableInfo</its:param> +<its:locNoteRule selector="//@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//msg[@id='1']/img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//msg[@id=$DisableInfoParam]"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> +</head> +<body> +<msg id="1"> +This is a hippoptamus: +<img src="hippo.png" alt="Hippo in the Chobe River"/> +. +</msg> +<msg id="2"> +This is an elephant: +<img src="elephants.png" alt="Elephants taking a mud bath"/> +. +</msg> +<msg id="DisableInfo">The {0} has been disabled.</msg> +</body> +</msgList> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xml.xml new file mode 100644 index 0000000000..20a697e98e --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xml.xml @@ -0,0 +1,18 @@ +<msgList> +<head> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="locnote11xmlrules.xml"/> +</head> +<body> +<msg id="1"> +This is a hippoptamus: +<img src="hippo.png" alt="Hippo in the Chobe River"/> +. +</msg> +<msg id="2"> +This is an elephant: +<img src="elephants.png" alt="Elephants taking a mud bath"/> +. +</msg> +<msg id="DisableInfo">The {0} has been disabled.</msg> +</body> +</msgList> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xmlrules.xml new file mode 100644 index 0000000000..43b00c70cd --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote11xmlrules.xml @@ -0,0 +1,16 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:param name="DisableInfoParam">DisableInfo</its:param> +<its:locNoteRule selector="//@alt" locNoteType="description"> +<its:locNote>This text will be displayed over the image.</its:locNote> +</its:locNoteRule> +<its:locNoteRule selector="//msg[@id='1']/img/@alt" locNoteType="alert"> +<its:locNote>Do not translate the word "Chobe"</its:locNote> +</its:locNoteRule> +<its:locNoteRule locNoteType="alert" selector="//msg[@id=$DisableInfoParam]"> +<its:locNote> +The variable +{0} +has three possible values: 'printer', 'stacker' and 'stapler options'. +</its:locNote> +</its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote1xml.xml new file mode 100644 index 0000000000..4b50997572 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote1xml.xml @@ -0,0 +1,13 @@ +<myRes> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule locNoteType="alert" selector="//msg[@id='DisableInfo']"> + <its:locNote>The variable {0} has three possible values: 'printer', + 'stacker' and 'stapler options'.</its:locNote> + </its:locNoteRule> + </its:rules> + </head> + <body> + <msg id="DisableInfo">The {0} has been disabled.</msg> + </body> +</myRes> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote2xml.xml new file mode 100644 index 0000000000..166215d649 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote2xml.xml @@ -0,0 +1,19 @@ +<Res> + <prolog> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:translateRule selector="//msg/notes" translate="no"/> + <its:locNoteRule locNoteType="description" selector="//msg/data" + locNotePointer="../notes"/> + </its:rules> + </prolog> + <body> + <msg id="FileNotFound"> + <notes>Indicates that the resource file {0} could not be loaded.</notes> + <data>Cannot find the file {0}.</data> + </msg> + <msg id="DivByZero"> + <notes>A division by 0 was going to be computed.</notes> + <data>Invalid parameter.</data> + </msg> + </body> +</Res> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote3xml.xml new file mode 100644 index 0000000000..3336af33d4 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote3xml.xml @@ -0,0 +1,12 @@ +<myRes> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule locNoteType="description" + selector="//msg[@id='NotFound']" + locNoteRef="ErrorsInfo.html/#NotFound" /> + </its:rules> + </head> + <body> + <msg id="NotFound">Cannot find {0} on {1}.</msg> + </body> +</myRes> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote4xml.xml new file mode 100644 index 0000000000..a98b30eba1 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote4xml.xml @@ -0,0 +1,16 @@ +<dataFile> + <prolog> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule locNoteType="description" selector="//body/string/data" + locNoteRefPointer="../@noteFile" /> + </its:rules> + </prolog> + <body> + <string id="FileNotFound" noteFile="Comments.html#FileNotFound"> + <data>Cannot find the file {0}.</data> + </string> + <string id="DivByZero" noteFile="Comments.html#DivByZero"> + <data>Invalid parameter.</data> + </string> + </body> +</dataFile> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xml.xml new file mode 100644 index 0000000000..dac3607a35 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xml.xml @@ -0,0 +1,15 @@ +<msgList> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0" + xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="locnote5xmlrules.xml"> + <its:locNoteRule selector="//msg[@id='1']/img/@alt" locNoteType="alert"> + <its:locNote>Do not translate the word "Chobe"</its:locNote> + </its:locNoteRule> + </its:rules> + </head> + <body> + <msg id="1">This is a hippoptamus: <img src="hippo.png" alt="Hippo in the Chobe River"/>.</msg> + <msg id="2">This is an elephant: <img src="elephants.png" alt="Elephants taking a mud bath"/>.</msg> + <msg id="DisableInfo">The {0} has been disabled.</msg> + </body> +</msgList> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xmlrules.xml new file mode 100644 index 0000000000..8eb7b345b4 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote5xmlrules.xml @@ -0,0 +1,9 @@ +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule selector="//@alt" locNoteType="description"> + <its:locNote>This text will be displayed over the image.</its:locNote> + </its:locNoteRule> + <its:locNoteRule locNoteType="alert" selector="//msg[@id='DisableInfo']"> + <its:locNote>The variable {0} has three possible values: 'printer', + 'stacker' and 'stapler options'.</its:locNote> + </its:locNoteRule> +</its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote6xml.xml new file mode 100644 index 0000000000..2df88380c1 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote6xml.xml @@ -0,0 +1,21 @@ +<msgList> + <head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:locNoteRule selector="//@alt" locNoteType="description"> + <its:locNote>This text will be displayed over the image.</its:locNote> + </its:locNoteRule> + <its:locNoteRule selector="//msg[@id='1']/img/@alt" locNoteType="alert"> + <its:locNote>Do not translate the word "Chobe"</its:locNote> + </its:locNoteRule> + <its:locNoteRule locNoteType="alert" selector="//msg[@id='DisableInfo']"> + <its:locNote>The variable {0} has three possible values: 'printer', + 'stacker' and 'stapler options'.</its:locNote> + </its:locNoteRule> + </its:rules> + </head> + <body> + <msg id="1">This is a hippoptamus: <img src="hippo.png" alt="Hippo in the Chobe River"/>.</msg> + <msg id="2">This is an elephant: <img src="elephants.png" alt="Elephants taking a mud bath"/>.</msg> + <msg id="DisableInfo">The {0} has been disabled.</msg> + </body> +</msgList> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote7xml.xml new file mode 100644 index 0000000000..65021f8b26 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote7xml.xml @@ -0,0 +1,20 @@ +<Res> +<prolog> +<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> +<its:translateRule selector="//msg/notes" translate="no"/> +<its:locNoteRule locNoteType="description" selector="//msg/data" locNotePointer="../notes"/> +</its:rules> +</prolog> +<body> +<msg id="FileNotFound"> +<notes> +Indicates that the resource file {0} could not be loaded. +</notes> +<data>Cannot find the file {0}.</data> +</msg> +<msg id="DivByZero"> +<notes>A division by 0 was going to be computed.</notes> +<data>Invalid parameter.</data> +</msg> +</body> +</Res> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote8xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote8xml.xml new file mode 100644 index 0000000000..41049c9681 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote8xml.xml @@ -0,0 +1,17 @@ +<?xml version="1.0"?> +<Res xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body its:locNote="The variable {0} is the name of the host."> + <msg id="HostNotFound"> + <data>Host {0} cannot be found.</data> + </msg> + <msg id="HostDisconnected"> + <data>The connection with {0} has been lost.</data> + </msg> + <msg id="FileNotFound"> + <data its:locNote="{0} is a filename" its:locNoteType="alert">{0} not found.</data> + </msg> + <msg id="CannotLog"> + <data its:locNoteRef="myLocNotes.htm#CannotLog" its:locNoteType="alert">Cannot log with this username.</data> + </msg> + </body> +</Res> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote9xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote9xml.xml new file mode 100644 index 0000000000..c726ea1d22 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/localizationnote/xml/locnote9xml.xml @@ -0,0 +1,8 @@ +<?xml version="1.0"?> +<Doc xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <p><its:span locNote="If possible keep the non-English terms in the translated version too">Everything started when + Zebulon discovered that he had a <its:span locNoteRef="http://en.wikipedia.org/wiki/Doppelganger">doppelgänger</its:span> + who was a <b>serious</b> baseball <its:span locNoteRef="http://en.wikipedia.org/wiki/Aficionado">aficionado</its:span>.</its:span></p> + </body> +</Doc> |