- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 16 Mar 2010 16:22:07 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates In directory hutz:/tmp/cvs-serv7817/WebContent/WEB-INF/resources/templates Modified Files: language.vm Log Message: Changed escaping from escapeHtml to escapeXml for translated strings. Removed redundant #if #end expressions. Added title on untranslated strings (ticket #77). Index: language.vm =================================================================== RCS file: /sources/public/2006/unicorn/WebContent/WEB-INF/resources/templates/language.vm,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- language.vm 5 Mar 2010 13:50:40 -0000 1.19 +++ language.vm 16 Mar 2010 16:22:05 -0000 1.20 @@ -66,12 +66,12 @@ #foreach($key in $defaultProps.keySet()) #if ($key != "lang" && $key != "language") <tr> - <th class="property_name" scope="row">$key <p>$esc.html($defaultProps.get($key))</p></th> + <th class="property_name" scope="row">$key <p>$esc.xml($defaultProps.get($key))</p></th> #foreach($prop in $languageProps) #if($prop.get($key)) - <td class="ok"><span xml:lang="$prop.get('lang')" #if($prop.get($key))title="$!esc.html($prop.get($key))"#end>✔</span></td> + <td class="ok"><span xml:lang="$prop.get('lang')" title="$!esc.xml($prop.get($key))">✔</span></td> #{else} - <td class="missing"><span #if($prop.get($key))title="$!esc.html($prop.get($key))"#end><a href="./translations?ucn_lang=$prop.get('lang')">✘</a></span></td> + <td class="missing"><span title="Missing translation of "$esc.xml($defaultProps.get($key))" in language "$prop.get('language')""><a href="./translations?ucn_lang=$prop.get('lang')">✘</a></span></td> #end #end </tr> @@ -80,12 +80,12 @@ #foreach($key in $defaultMetadata.keySet()) #if ($key != "lang" && $key != "language") <tr> - <th class="property_name" scope="row">$key <p>$esc.html($defaultMetadata.get($key))</p></th> + <th class="property_name" scope="row">$key <p>$esc.xml($defaultMetadata.get($key))</p></th> #foreach($meta in $metadataProps) #if($meta.get($key)) - <td class="ok"><span xml:lang="$meta.get('lang')" #if($meta.get($key))title="$!esc.html($meta.get($key))"#end>✔</span></td> + <td class="ok"><span xml:lang="$meta.get('lang')" title="$!esc.xml($meta.get($key))">✔</span></td> #{else} - <td class="missing"><span #if($meta.get($key))title="$!esc.html($meta.get($key))"#end><a href="./translations?ucn_lang=$meta.get('lang')">✘</a></span></td> + <td class="missing"><span title="Missing translation of "$esc.xml($defaultMetadata.get($key))" in language "$meta.get('language')""><a href="./translations?ucn_lang=$meta.get('lang')">✘</a></span></td> #end #end </tr>
Received on Tuesday, 16 March 2010 16:22:12 UTC