2006/unicorn/resources/templates text.error.vm,NONE,1.1 text.vm,NONE,1.1 xhtml10.error.vm,NONE,1.1 xhtml10.vm,NONE,1.1 index.vm,1.3,1.4

Update of /sources/public/2006/unicorn/resources/templates
In directory hutz:/tmp/cvs-serv26546/resources/templates

Modified Files:
	index.vm 
Added Files:
	text.error.vm text.vm xhtml10.error.vm xhtml10.vm 
Log Message:
Internationalisation

--- NEW FILE: xhtml10.error.vm ---
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    #if($unicorncall.DocumentName)
      <title>$result_for $unicorncall.DocumentName</title>
    #else
      <title>$result_for_upload</title>
    #end
    <link rev="start" href="./" title="Home Page" />
    <style type="text/css" media="all">@import "./style/base.css";</style>
    <meta name="keywords" content="Unicorn, Observation"/>
  </head>
  <body>
    <div id="banner">
      <h1 id="title"><a href="http://www.w3.org/"><img height="48" alt="W3C" id="logo" src="http://www.w3.org/Icons/WWW/w3c_home_nb" /></a>
      Unicorn</h1>  
    </div>
    <p id="tagline">
      Universal Conformance Observation Report Notation
    </p>
    <div id="result">
      <h2 id="results" class="invalid">$critical_error</h2>
      <ol class="error_list">
        <li class="msg_err">
          #if($error.Message)
          <span class="msg">$error.Message</span>
          #end
          <div class="ve mid-127">
            $stack_trace_text
          </div>
          <pre>
$error
      #foreach($traceElt in $error.StackTrace)
$traceElt
      #end
          </pre>
        </li>
      </ol>
    </div>
    
    <ul class="navbar"  id="menu">
      <li><a href="about" title="About this service">About</a> <span class="hideme">|</span></li>
      <li><a href="documentation" title="Documentation for the W3C CSS Validation Service">Documentation</a> <span class="hideme">|</span></li>
      <li><a href="DOWNLOAD" title="Download and install the CSS validator">Download</a> <span class="hideme">|</span></li>
      <li><a href="Email" title="How to provide feedback on this service">Feedback</a> <span class="hideme">|</span></li>
      <li><a href="thanks" title="Credits and Acknowlegments">Credits</a><span class="hideme">|</span></li>
      <li><a href="languages" title="How to use the CSS Validator in your language">Other Languages</a><span class="hideme">|</span></li>
    </ul>

    <p id="activity_logos">
      <a href="http://www.w3.org/QA/" title="W3C's Quality Assurance Activity, bringing you free Web quality tools and more"><img src="http://www.w3.org/QA/2002/12/qa-small.png" alt="QA" /></a><a href="http://www.w3.org/Style/CSS/learning" title="Learn more about Cascading Style Sheets"></a>
    </p>
    <p id="support_logo">
      Support this tool, become a<br />
      <a href="http://www.w3.org/Consortium/supporters"><img src="http://www.w3.org/Consortium/supporter-logos/csupporter.png" alt="W3C Supporter" /></a>
    </p>

    <p class="copyright">
      <a rel="Copyright" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; 1994-2006
      <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a>&reg;

      (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>,
      <a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>,
      <a href="http://www.keio.ac.jp/">Keio</a>),
      All Rights Reserved.
      W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
      <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>,
      <a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a>
      and <a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</a>

      rules apply. Your interactions with this site are in accordance
      with our <a href="http://www.w3.org/Consortium/Legal/privacy-statement#Public">public</a> and
      <a href="http://www.w3.org/Consortium/Legal/privacy-statement#Members">Member</a> privacy
      statements.
    </p>

</body>
</html>
Index: index.vm
===================================================================
RCS file: /sources/public/2006/unicorn/resources/templates/index.vm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- index.vm	27 Jul 2009 10:47:36 -0000	1.3
+++ index.vm	28 Jul 2009 10:36:31 -0000	1.4
@@ -4,7 +4,7 @@
 		$task:
 		<select name="ucn_task" onchange="javascript:taskChanged(this.options[this.options.selectedIndex].value, $i);">
 			#foreach( $task in $tasklist ) 
-				<option value="$task.getID()">$task.getLongName("fr")</option> 
+				<option value="$task.getID()">$task.getLongName("${lang}")</option> 
 			#end
 		</select>
 	</div>

--- NEW FILE: text.error.vm ---
#macro(error $error)
-- Error -------------------------
#if($error.Line)Line $error.Line #end #if($error.Column)Column $error.Column #end:
#foreach($message in $error.Message)
>> error.Message: $message
#end
#if($error.Context && $error.Context != "")
>> error.Context: $error.Context
#end
#foreach($longMessage in $error.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> error.longMessagePiece: $longMessagePiece
#end
#end
#end

#macro(info $information)
-- Information -------------------
#if($information.Line)Line $information.Line #end #if($information.Column)Column $information.Column #end:
#foreach($message in $information.Message)
>> information.Message: $message
#end
#if($information.Context && $information.Context != "")
>> information.Context: $information.Context
#end
#foreach($longMessage in $information.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> information.longMessagePiece: $longMessagePiece
#end
#end
#end

#macro(warning $warning)
-- Alerte -----------------------
#if($warning.Line)Line $warning.Line #end #if($warning.Column)Column $warning.Column #end:
#foreach($message in $warning.Message)
>> warning.Message: $message
#end
#if($warning.Context && $warning.Context != "")
>> warning.Context: $warning.Context
#end
#foreach($longMessage in $warning.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> warning.longMessagePiece: $longMessagePiece
#end
#end
#end

#macro(produceErrors $errors)
// Errors /////////////////////////////////////////

#foreach($errorList in $errors.Errorlist)
>>>> Location: $errorList.Uri
#foreach($error in $errorList.Error)
#error($error)
#end
#end
#end

#macro(produceWarnings $warnings)
// Alerts ///////////////////////////////////////

#foreach($warningList in $warnings.Warninglist)
#if($warningList.Warning && $warningList.Warning.size() != 0)
>>>> Location: $warningList.Uri
#foreach($warning in $warningList.Warning)
#warning($warning)
#end
#end
#end
#end

#macro(produceInfos $infos)
// Informations ///////////////////////////////////

#foreach($infoList in $infos.Infolist)
>>>> Location: $infoList.Uri
#foreach($information in $infoList.Info)
#info($information)
#end
#end
#end


#set($observationList = $unicorncall.ObservationList)
#foreach($observationName in $observationList.keySet())
#set($observation = $observationList.get($observationName))



========================= $observationName ====================================

#if($observation.isPassed())
> Le document est valide le test #if($observation.getVersion()) $observation.getVersion().toUpperCase() #else $observationName #end !
#else
> Le document ne passe pas le test #if($observation.getVersion()) $observation.getVersion().toUpperCase() #else $observationName #end !
#produceErrors($observation.Result.Errors)
#end


#if($observation.Result.Informations)
#produceInfos($observation.Result.Informations)
#end
#if($observation.Result.Warnings)
#produceWarnings($observation.Result.Warnings)
#end
#end

#if(!$unicorncall.haveHighPassed())
$fail_high_priority
#end
#if(!$unicorncall.haveMediumPassed())
$fail_medium_priority
#end

--- NEW FILE: text.vm ---
#macro(error $error)
  ---$text_error--------------------------
  #if($error.Line)$line $error.Line #end #if($error.Column)Column $error.Column #end :
  #foreach($message in $error.Message)
    $text_error : $message
  #end
  #if($error.Context && $error.Context != "")
    ${error_context} : $error.Context
  #end
  #foreach($longMessage in $error.Longmessage)
      	#foreach($longMessagePiece in $longMessage.Content)
			$longMessagePiece
        #end
  #end
#end

#macro(info $information)
-- Information -------------------
#if($information.Line)$line $information.Line #end #if($information.Column)Column $information.Column #end:
#foreach($message in $information.Message)
>> information.Message: $message
#end
#if($information.Context && $information.Context != "")
>> information.Context: $information.Context
#end
#foreach($longMessage in $information.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> information.longMessagePiece: $longMessagePiece
#end
#end
#end

#macro(warning $warning)
-- Alerte -----------------------
#if($warning.Line)$line $warning.Line #end #if($warning.Column)Column $warning.Column #end:
#foreach($message in $warning.Message)
>> warning.Message: $message
#end
#if($warning.Context && $warning.Context != "")
>> warning.Context: $warning.Context
#end
#foreach($longMessage in $warning.Longmessage)
#foreach($longMessagePiece in $longMessage.Content)
>> warning.longMessagePiece: $longMessagePiece
#end
#end
#end


#macro(produceErrors $errors)
============== ${text_errors} ===================

	#foreach($error in $errors)
		#error($error)
	#end
#end

#macro(produceWarnings $warnings)
// $warning ///////////////////////////////////////

#foreach($warningList in $warnings.Warninglist)
#if($warningList.Warning && $warningList.Warning.size() != 0)
>>>> $location: $warningList.Uri
#foreach($warning in $warningList.Warning)
#warning($warning)
#end
#end
#end
#end

#macro(produceInfos $infos)
// $information ///////////////////////////////////

#foreach($infoList in $infos.Infolist)
>>>> $location: $infoList.Uri
#foreach($information in $infoList.Info)
#info($information)
#end
#end
#end


#set($observationList = $unicorncall.ObservationList)
#foreach($observationName in $observationList.keySet())
#set($observation = $observationList.get($observationName))



========================= $observationName ====================================


#if($observation.isPassed())
> $test_ok_1 #if($observation.getVersion()) $observation.getVersion().toUpperCase() #else $observationName #end $test_ok_2
#else
> $test_fail_1 #if($observation.getVersion()) $observation.getVersion().toUpperCase() #else $observationName #end $test_fail_2
#foreach($result in $observation.getResultsList())
        #if(!$result.Errors.isEmpty())
          $location: $result.Uri
      	  #produceErrors($result.Errors)
      	#end
      #end
#end


#if($observation.Result.Informations)
#produceInfos($observation.Result.Informations)
#end
#if($observation.Result.Warnings)
#produceWarnings($observation.Result.Warnings)
#end
#end



--- NEW FILE: xhtml10.vm ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    #if($unicorncall.DocumentName)
      <title>$result_for $unicorncall.DocumentName</title>
    #else
      <title>$result_for_upload</title>
    #end
    <link rev="start" href="./" title="Home Page" />
    <style type="text/css" media="all">@import "./style/base.css";</style>
    <style type="text/css" media="all">@import "./style/results.css";</style>
    <meta name="keywords" content="Unicorn, Observation"/>
  </head>

#macro(error $error)
  <span class="err_type">Error</span>
  <em>#if($error.Line)Line $error.Line #end #if($error.Column)Column $error.Column #end</em>:
  #foreach($message in $error.Message)
    <span class="msg">$message</span>
  #end
  #if($error.Context && $error.Context != "")
    <pre><code class="input">$error.Context</code></pre>
  #end
  <div class="ve mid-127">
  #foreach($longMessage in $error.Longmessage)
      <p>
      	#foreach($longMessagePiece in $longMessage.Content)
			$longMessagePiece
        #end
      </p>
  #end
  </div>
#end

#macro(info $information)
  <span class="err_type">Info</span>
  <em>#if($information.Line)Line $information.Line #end #if($information.Column)Column $information.Column #end</em>:
  #foreach($message in $information.Message)
    <span class="msg">$message</span>
  #end
  #if($information.Context && $information.Context != "")
    <pre><code class="input">$information.Context</code></pre>
  #end
  <div class="ve mid-127">
  #foreach($longMessage in $information.Longmessage)
      <p>
        #foreach($longMessagePiece in $longMessage.Content)
            $longMessagePiece
        #end
      </p>
  #end
  </div>
#end

#macro(warning $warning)
  <span class="err_type">Warning</span>
  <em>#if($warning.Line)Line $warning.Line #end #if($warning.Column)Column $warning.Column #end</em>:
  #foreach($message in $warning.Message)
    <span class="msg">$message</span>
  #end
  #if($warning.Context && $warning.Context != "")
    <pre><code class="input">$warning.Context</code></pre>
  #end
  <div class="ve mid-127">
  #foreach($longMessage in $warning.Longmessage)
      <p>
        #foreach($longMessagePiece in $longMessage.Content)
            $longMessagePiece
        #end
      </p>
  #end
  </div>
#end

#macro(produceErrors $errors)
    <ol class="error_list">
    #foreach($error in $errors)
      <li class="msg_err">
        #error($error)
      </li>
    #end
    </ol>
#end

#macro(produceWarnings $warnings)
      <ol class="warning_list">
      #foreach($warning in $warnings)
        <li class="msg_warn">
          #warning($warning)
        </li>
      #end
      </ol>
#end

#macro(produceInfos $infos)
    <ol class="info_list">
    #foreach($information in $infos)
      <li class="msg_info">
        #info($information)
      </li>
    #end
    </ol>
#end

<body>
  <div id="banner">
    <h1 id="title"><a href="http://www.w3.org/"><img height="48" alt="W3C" id="logo" src="http://www.w3.org/Icons/WWW/w3c_home_nb" /></a>
<img src="images/unicorn.png" alt="Unicorn" /></h1>
 
  </div>
  <p id="tagline">
        the Web's Universal Conformance Checker - <strong>ALPHA Test Version</strong>
  </p>
  <div id="result">
  #set($observationList = $unicorncall.ObservationList)
  #foreach($observationName in $observationList.keySet())
    #set($observation = $observationList.get($observationName))
    #if($observation.isPassed())
      <h2 class="valid">$test_ok_1 
      #if($observation.getVersion())
        $observation.getVersion().toUpperCase()
      #else 
        $observationName
      #end
      $test_ok_2</h2>
    #else
      <h2 id="results" class="invalid">$test_fail_1 
      #if($observation.getVersion())
        $observation.getVersion().toUpperCase()
      #else 
        $observationName
      #end
      $test_fail_2</h2>
      #foreach($result in $observation.getResultsList())
        #if(!$result.Errors.isEmpty())
          <h3>$location: $result.Uri</h3>
      	  #produceErrors($result.Errors)
      	#end
      #end
    #end
    
    
    #foreach($result in $observation.getResultsList())
      #if(!$result.Infos.isEmpty() || !$result.Warnings.isEmpty())
        <h3>$location: $result.Uri</h3>
      #end
  
      #if(!$result.Infos.isEmpty())
        #produceInfos($result.Infos)
      #end
    
      #if(!$result.Warnings.isEmpty())
        #produceWarnings($result.Warnings)
      #end
    #end
   <hr/>
   
  #end



  </div>

     <ul class="navbar"  id="menu">
       	<li><a href="http://www.w3.org/QA/2006/obs_framework/" title="Documentation about this service and the software behind it">Documentation</a> <span class="hideme">|</span></li>
		<li><a href="http://dev.w3.org/cvsweb/2006/unicorn/" title="Download the source for this service">Download</a> <span class="hideme">|</span></li>
		<li><a href="mailto:public-qa-dev@w3.org" title="send us your thoughts and bug reports on the PUBLIC development mailing-list">Feedback</a> <span class="hideme">|</span></li>
	      </ul>

   <p id="activity_logos">
      <a href="http://www.w3.org/QA/" title="W3C's Quality Assurance Activity, bringing you free Web quality tools and more"><img src="http://www.w3.org/QA/2002/12/qa.png" alt="QA" /></a><a href="http://www.w3.org/Style/CSS/learning" title="Learn more about Cascading Style Sheets"></a>
   </p>
   <p id="support_logo">
Support this tool, become a<br />
<a href="http://www.w3.org/Consortium/supporters"><img src="http://www.w3.org/Consortium/supporter-logos/csupporter.png" alt="W3C Supporter" /></a>
   </p>

    <p class="copyright">
      <a rel="Copyright" href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> &copy; 1994-2006
      <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a>&reg;

      (<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>,
      <a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>,
      <a href="http://www.keio.ac.jp/">Keio</a>),
      All Rights Reserved.
      W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>,
      <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a>,
      <a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a>
      and <a rel="Copyright" href="http://www.w3.org/Consortium/Legal/copyright-software">software licensing</a>

      rules apply. Your interactions with this site are in accordance
      with our <a href="http://www.w3.org/Consortium/Legal/privacy-statement#Public">public</a> and
      <a href="http://www.w3.org/Consortium/Legal/privacy-statement#Members">Member</a> privacy
      statements.
    </p>

</body>
</html>

Received on Tuesday, 28 July 2009 10:36:43 UTC