Changeset 582:e116f82606e1

Show
Ignore:
Timestamp:
09/30/09 13:43:13 (4 years ago)
Author:
tgambet
Branch:
default
convert_revision:
svn:cdcfb263-7567-472c-a848-e2c2df3466e7/trunk@583
Message:

internationalized lots of strings

Location:
WebContent/WEB-INF/resources/templates
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • WebContent/WEB-INF/resources/templates/index.vm

    r570 r582  
    2020                                        <div class="input"> 
    2121                                                <p> 
    22                                                         <label><span>$task:</span> 
     22                                                        <label><span>$task_label:</span> 
    2323                                                                <select name="${param_prefix}task" id="tasks"> 
    2424#foreach( $task in $tasklist ) 
     
    4040                                                <p class="instructions">$instruction-by-uri</p> 
    4141                                                <p> 
    42                                                         <label title="$uri_title" for="ucn_uri"><span>$uri:</span> 
     42                                                        <label title="$uri_title" for="ucn_uri"><span>$uri_label:</span> 
    4343                                                                <input type="text" name="${param_prefix}uri" id="ucn_uri" size="45" value="$!param_uri"/> 
    4444                                                        </label> 
     
    5555                                                <p class="instructions">$instruction-by-upload</p> 
    5656                                                <p> 
    57                                                         <label title="$instruction-by-upload" for="ucn_file"><span>$local_file:</span> 
     57                                                        <label title="$instruction-by-upload" for="ucn_file"><span>$local_file_label:</span> 
    5858                                                                <input type="file" id="ucn_file" name="${param_prefix}file" size="30" /> 
    5959                                                        </label> 
  • WebContent/WEB-INF/resources/templates/xhtml10.vm

    r559 r582  
    4141        <h2 class="title"> 
    4242                <span class="icons"> 
    43                         #if ($infoCount && $infoCount > 0)<a class="infos" href="#${observationName}_info"><span class="legend">Infos:</span><span class="count">$infoCount</span></a> #end 
    44                         #if ($errorCount && $errorCount > 0)<a class="errors" href="#${observationName}_error"><span class="legend">Errors:</span><span class="count">$errorCount</span></a> #end 
    45                         #if ($warningCount && $warningCount > 0)<a class="warnings" href="#${observationName}_warning"><span class="legend">Warnings:</span><span class="count">$warningCount</span></a> #end 
    46                         <a class="anchor smooth" href="#$observationName" title="anchor to this observation">[anchor]</a> 
     43                        #if ($infoCount && $infoCount > 0)<a class="infos" href="#${observationName}_info" title="$info_label:$infoCount"><span class="legend">$info_label</span><span class="count">$infoCount</span></a> #end 
     44                        #if ($errorCount && $errorCount > 0)<a class="errors" href="#${observationName}_error" title="$error_label:$errorCount"><span class="legend">$error_label</span><span class="count">$errorCount</span></a> #end 
     45                        #if ($warningCount && $warningCount > 0)<a class="warnings" href="#${observationName}_warning" title="$warning_label:$warningCount"><span class="legend">$warning_label</span><span class="count">$warningCount</span></a> #end 
     46                        <a class="anchor smooth" href="#$observationName" title="$anchor_observation">a</a> 
    4747                </span> 
    4848                #if($observation.isPassed()) 
    49                 $test_ok_1 
     49                $test_ok 
    5050                #else 
    51                 $test_fail_1 
     51                $test_fail 
    5252                #end 
    5353                <span class="name">$unicorncall.getObserverName($observationName, $lang) #if ($observation.Rating) ($observation.Rating/100) #end</span> 
    54                 #if ($observation.getFilteredRequestUri())<a class="direct_link" href="$observation.getFilteredRequestUri()" title="revalidate this document on the validator website">[direct link]</a> 
    55                 #else <a class="direct_link" href="$observation.getBaseURI($observationName)" title="link to this validator website">[direct link]</a>#end 
     54                #if ($observation.getFilteredRequestUri())<a class="direct_link" href="$observation.getFilteredRequestUri()" title="direct_link_title_1">$direct_link_label</a> 
     55                #else <a class="direct_link" href="$observation.getBaseURI($observationName)" title="direct_link_title_2">$direct_link_label</a>#end 
    5656        </h2> 
    5757         
     
    6060                <div class="section infos" id="${observationName}_info"> 
    6161                        <h3 class="title"> 
    62                                 <a class="smooth anchor" title="anchor to this uri" href="#${observationName}_info">[anchor]</a> 
    63                                 Infos ($infoCount) 
     62                                <a class="smooth anchor" title="$anchor_uri" href="#${observationName}_info">a</a> 
     63                                $info_label ($infoCount) 
    6464                        </h3> 
    6565                        <div class="block result"> 
     
    7272                                                <tr> 
    7373                                                        <td colspan="4" class="uri" id="${observationName}_info_${i}"> 
    74                                                         #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end 
    75                                                         #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end 
    76                                                         #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end 
    77                                                         </td> 
    78                                                         <td class="anchor uri"><a class="smooth" title="anchor to this uri" href="#${observationName}_info_${i}">[anchor]</a></td> 
     74                                                        #if ($unicorncall.getInputMethod() == "URI")<span>$uri_token</span><a href="$result.Uri">$result.Uri</a>#end 
     75                                                        #if ($unicorncall.getInputMethod() == "UPLOAD")<span>$file_token</span>$result.Uri#end 
     76                                                        #if ($unicorncall.getInputMethod() == "DIRECT")<span>$submitted_file</span>#end 
     77                                                        </td> 
     78                                                        <td class="anchor uri"><a class="smooth" title="$anchor_uri" href="#${observationName}_info_${i}">a</a></td> 
    7979                                                </tr> 
    8080#foreach($info in $result.Infos) 
    8181#set ($messageId = "${observationName}_info_${i}_$velocityCount") 
    8282                                                <tr> 
    83                                                         <td class="linenumber" title="#if($info.Line)Line:$info.Line#end">#if($info.Line)$info.Line#end</td> 
    84                                                         <td class="colnumber" title="#if($info.Column)Column:$info.Column#end">#if($info.Column)$info.Column #end</td> 
    85                                                         <td class="codeContext"> #if($info.Context) $info.Context #end </td> 
     83                                                        <td class="linenumber" title="#if($info.Line)$line_token: $info.Line#end">$!info.Line</td> 
     84                                                        <td class="colnumber" title="#if($info.Column)$column_token: $info.Column#end">$!info.Column</td> 
     85                                                        <td class="codeContext" title="$context_token">$!{info.Context}</td> 
    8686                                                        <td class="info" id="$messageId"> 
    8787                                                        #foreach($message in $info.Message)<span class="msg">$message</span>#end 
     
    9494                                                        #end 
    9595                                                        </td> 
    96                                                         <td class="anchor"><a class="smooth" title="anchor to this message" href="#$messageId">[anchor]</a></td> 
     96                                                        <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> 
    9797                                                </tr> 
    9898#end 
     
    108108                <div class="section errors" id="${observationName}_error"> 
    109109                        <h3 class="title"> 
    110                                 <a class="smooth anchor" title="anchor to this uri" href="#${observationName}_error">[anchor]</a> 
    111                                 Errors ($errorCount) 
     110                                <a class="smooth anchor" title="$anchor_uri" href="#${observationName}_error">a</a> 
     111                                $error_label ($errorCount) 
    112112                        </h3> 
    113113                        <div class="block result"> 
     
    120120                                                <tr> 
    121121                                                        <td colspan="4" class="uri" id="${observationName}_error_${i}"> 
    122                                                         #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end 
    123                                                         #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end 
    124                                                         #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end 
    125                                                         </td> 
    126                                                         <td class="anchor uri"><a class="smooth" title="anchor to this uri" href="#${observationName}_error_${i}">[anchor]</a></td> 
     122                                                        #if ($unicorncall.getInputMethod() == "URI")<span>$uri_token</span><a href="$result.Uri">$result.Uri</a>#end 
     123                                                        #if ($unicorncall.getInputMethod() == "UPLOAD")<span>$file_token</span>$result.Uri#end 
     124                                                        #if ($unicorncall.getInputMethod() == "DIRECT")<span>$submitted_file</span>#end 
     125                                                        </td> 
     126                                                        <td class="anchor uri"><a class="smooth" title="$anchor_uri" href="#${observationName}_error_${i}">a</a></td> 
    127127                                                </tr> 
    128128#foreach($error in $result.Errors) 
    129129#set ($messageId = "${observationName}_error_${i}_$velocityCount") 
    130130                                                <tr> 
    131                                                         <td class="linenumber" title="#if($error.Line)Line: $error.Line#end">#if($error.Line)$error.Line#end</td> 
    132                                                         <td class="colnumber" title="#if($error.Column)Column: $error.Column#end">#if($error.Column)$error.Column #end</td> 
    133                                                         <td class="codeContext">#if($error.Context) $error.Context #end</td> 
     131                                                        <td class="linenumber" title="#if($error.Line)$line_token: $error.Line#end">$!error.Line</td> 
     132                                                        <td class="colnumber" title="#if($error.Column)$column_token: $error.Column#end">$!error.Column</td> 
     133                                                        <td class="codeContext" title="$context_token">$!error.Context</td> 
    134134                                                        <td class="error" id="$messageId"> 
    135135                                                        #foreach($message in $error.Message)<span class="msg">$message</span>#end 
     
    142142                                                        #end 
    143143                                                        </td> 
    144                                                         <td class="anchor"><a class="smooth" title="anchor to this message" href="#$messageId">[anchor]</a></td> 
     144                                                        <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> 
    145145                                                </tr> 
    146146#end 
     
    156156                <div class="section warnings" id="${observationName}_warning"> 
    157157                        <h3 class="title"> 
    158                                 <a class="smooth anchor" title="anchor to this uri" href="#${observationName}_warning">[anchor]</a> 
    159                                 Warnings ($warningCount) 
     158                                <a class="smooth anchor" title="$anchor_uri" href="#${observationName}_warning">a</a> 
     159                                $warning_label ($warningCount) 
    160160                        </h3> 
    161161                        <div class="block result"> 
     
    168168                                                <tr> 
    169169                                                        <td colspan="4" class="uri" id="${observationName}_warning_${i}"> 
    170                                                         #if ($unicorncall.getInputMethod() == "URI")<span>URI : </span><a href="$result.Uri">$result.Uri</a>#end 
    171                                                         #if ($unicorncall.getInputMethod() == "UPLOAD")<span>File : </span>$result.Uri#end 
    172                                                         #if ($unicorncall.getInputMethod() == "DIRECT")<span>File : </span>Direct Input#end 
    173                                                         </td> 
    174                                                         <td class="anchor uri"><a class="smooth" title="anchor to this uri" href="#${observationName}_warning_${i}">[anchor]</a></td> 
     170                                                        #if ($unicorncall.getInputMethod() == "URI")<span>$uri_token</span><a href="$result.Uri">$result.Uri</a>#end 
     171                                                        #if ($unicorncall.getInputMethod() == "UPLOAD")<span>$file_token</span>$result.Uri#end 
     172                                                        #if ($unicorncall.getInputMethod() == "DIRECT")<span>$submitted_file</span>#end 
     173                                                        </td> 
     174                                                        <td class="anchor uri"><a class="smooth" title="$anchor_uri" href="#${observationName}_warning_${i}">a</a></td> 
    175175                                                </tr> 
    176176#foreach($warning in $result.Warnings) 
    177177#set ($messageId = "${observationName}_warning_${i}_$velocityCount") 
    178178                                                <tr> 
    179                                                         <td class="linenumber" title="#if($warning.Line)Line: $warning.Line#end">#if($warning.Line)$warning.Line#end</td> 
    180                                                         <td class="colnumber" title="#if($warning.Column)Column: $warning.Column#end">#if($warning.Column)$warning.Column #end</td> 
    181                                                         <td class="codeContext">#if($warning.Context) $warning.Context #end</td> 
     179                                                        <td class="linenumber" title="#if($warning.Line)$line_token: $warning.Line#end">$!warning.Line</td> 
     180                                                        <td class="colnumber" title="#if($warning.Column)$column_token: $warning.Column#end">$!warning.Column</td> 
     181                                                        <td class="codeContext" title="$context_token">$!warning.Context</td> 
    182182                                                        <td class="warning level$warning.getLevel()" id="$messageId"> 
    183183                                                        #foreach($message in $warning.Message)<span class="msg">$message</span>#end 
     
    190190                                                        #end 
    191191                                                        </td> 
    192                                                         <td class="anchor"><a class="smooth" title="anchor to this message" href="#$messageId">[anchor]</a></td> 
     192                                                        <td class="anchor"><a class="smooth" title="$anchor_message" href="#$messageId">a</a></td> 
    193193                                                </tr> 
    194194#end 
     
    204204#end 
    205205</div> 
    206 #parse( 'includes/footer.vm' ) 
     206#parse('includes/footer.vm')