Changeset 284 for trunk/root/templates


Ignore:
Timestamp:
12/19/09 15:19:12 (14 years ago)
Author:
nanardon
Message:
  • translate 'includes' template
Location:
trunk/root/templates/includes
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/templates/includes/admin_menu.tt

    r269 r284  
    55<a href="[% c.uri_for('/admin', poll.uid) %]">[% poll.info.label | html %]</a> 
    66[% IF poll.status == 'BEFORE' %] 
    7 :: <a href="[% c.uri_for('/admin', poll.uid, 'ballot') %]">Bulletins</a> 
     7:: <a href="[% c.uri_for('/admin', poll.uid, 'ballot') %]">[% l('Ballot') %]</a> 
    88[% END %] 
    9 :: <a href="[% c.uri_for('/admin', poll.uid, 'voting') %]">Electeurs</a> 
     9:: <a href="[% c.uri_for('/admin', poll.uid, 'voting') %]">[% l('Voting') %]</a> 
    1010[% IF poll.status == 'BEFORE' %] 
    11 :: <a href="[% c.uri_for('/admin', poll.uid, 'date') %]">Dates</a> 
     11:: <a href="[% c.uri_for('/admin', poll.uid, 'date') %]">[% l('Dates') %]</a> 
    1212[% END %] 
    1313[% IF poll.status == 'AFTER' %] 
    14 :: <a href="[% c.uri_for('/admin', poll.uid, 'validate') %]">Validation</a> 
     14:: <a href="[% c.uri_for('/admin', poll.uid, 'validate') %]">[% l('Validate') %]</a> 
    1515[% END %] 
    1616[% IF poll.status != 'RUNNING' %] 
    17 :: <a href="[% c.uri_for('/admin', poll.uid, 'delete') %]">Effacer</a> 
     17:: <a href="[% c.uri_for('/admin', poll.uid, 'delete') %]">[% l('Delete') %]</a> 
    1818[% END %] 
    1919</div> 
  • trunk/root/templates/includes/ballot_form.tt

    r267 r284  
    2323 
    2424[% count = 0 %] 
    25 [% "<p>Depuis la liste électorale:</p>" IF count == 0 %] 
     25[% "<p>[% l('From voting list') %]</p>" IF count == 0 %] 
    2626[% IF poll.voting_keys.size %] 
    2727[% WHILE count < (poll.info('elected_choice') || 0) %] 
     
    3838[% END %] 
    3939[% ELSE %] 
    40 <p>Pas de votant à afficher</p> 
     40<p>[% l('No voting to show') %]</p> 
    4141[% END %] 
    4242 
     
    4444[% count = 0 %] 
    4545[% WHILE count < poll.info('free_choice') %] 
    46 [% "<p>Choi(x) libre(s):</p>" IF count == 0 %] 
     46[% "<p>[% l('Free choice') %]</p>" IF count == 0 %] 
    4747<input type="text" name="fsbal" value="[% fsbal.$count %]"><br> 
    4848[% count = count + 1 %] 
    4949[% END %] 
    5050<br> 
    51 <input type="submit" name="ballot" value="Voter &gt;&gt;"> 
     51<input type="submit" name="ballot" value="[% l('Voter') _ ' ' %] &gt;&gt;"> 
    5252</form> 
    5353<hr> 
    5454<form action="[% b_form_url %]" method="POST"> 
    55 <input type="submit" name="ballot" value="Voter blanc &gt;&gt;"> 
     55<input type="submit" name="ballot" value="[% l('Empty ballot') _ ' ' %] &gt;&gt;"> 
    5656</form> 
  • trunk/root/templates/includes/header.tt

    r280 r284  
    3232            <option>C</option> 
    3333            [% FOREACH lang = [ 'fr' ] %] 
    34             <option[% " selected" IF locale == l %]>[% lang | html %]</option> 
     34            <option[% " selected" IF locale == lang %]>[% lang | html %]</option> 
    3535            [% END %] 
    3636        </select><input type="submit"> 
    3737        </form> 
    3838    <p id="menu" style="clear: both;"> 
    39     <a href="[% c.uri_for('/') %]">Acceuil</a> :: 
    40     <a href="[% c.uri_for('/newpoll') %]">Créer un nouveau vote</a> 
     39    <a href="[% c.uri_for('/') %]">[% l('Welcome') %]</a> :: 
     40    <a href="[% c.uri_for('/newpoll') %]">[% l('Create a new poll') %]</a> 
    4141    [% IF voteid %] 
    4242    :: <a href="[% c.uri_for('/vote', c.model('Vote').poll(voteid).uid) %]"> 
    43         Votre vote: [% c.model('Vote').poll(voteid).info('label') | truncate(40) | html %] 
     43        [% l('Your poll:') _ ' ' %][% c.model('Vote').poll(voteid).info('label') | truncate(40) | html %] 
    4444    </a> 
    4545    [% END %] 
  • trunk/root/templates/includes/poll.tt

    r269 r284  
    1111<p>[% poll.info('procedure') | html | html_line_break %]</p> 
    1212[% END %] 
    13 <p>[% poll.info('choice_count') %] choix est/sont à faire 
     13<p>[% l('[_1] choice have to be done', poll.info('choice_count') %] 
    1414[%- IF poll.info('choice_count') != poll.info('elected_count') -%] 
    15 pour [% poll.info('elected_count') %] élu(s)[%- END -%].</p> 
     15[% l('for [_1] elected', poll.info('elected_count')) %][%- END -%].</p> 
    1616[% IF poll.info('dstart') && poll.info('dend') %] 
    17 <p>Scrutin ouvert du <b>[% poll.info('dstart') _ ' ' _ poll.info('hstart') | html %]</b> au 
    18 <b>[% poll.info('dend') _ ' ' _ poll.info('hend') | html %]</b></p> 
     17<p>[% l('Poll open from <b>[_1] [_2]</b> to <b>[_3] [_4]</b>', 
     18poll.info('dstart'), poll.info('hstart'), 
     19poll.info('dend'), poll.info('hend') %]</p> 
    1920[% END %] 
    20 Ont voté: [% poll.signing_count %] / [% poll.voting_count %]<br> 
    21 Bulletins: [% poll.ballot_count %] 
     21[% l('Participated') _ ' ' %] [% poll.signing_count %] / [% poll.voting_count %]<br> 
     22[% l('Ballot:') _ ' ' %] [% poll.ballot_count %] 
    2223[% IF poll.signing_count != poll.ballot_count %] 
    23 <p class="alert">Le nombre de bulletins et le nombre de personnes ayant voté divergent, 
    24 suspicion de tricherie</p> 
     24<p class="alert"> 
     25[% l('The number of ballot and people having voted differ') %] 
     26</p> 
    2527[% END %] 
    2628</div> 
     
    2830[% IF loop.first %] 
    2931<div style="float: right; width: 20%; top: 0px;" class="box"> 
    30 <p>Bulletin:</p> 
     32<p>[% l('Ballot:') %]</p> 
    3133<ol style="padding-left:15px; margin:5px;"> 
    3234[% END %] 
  • trunk/root/templates/includes/poll_results.tt

    r227 r284  
    1010</div> 
    1111[% IF poll.list_ballot_needvalid.size %] 
    12 <p>Resultats provisoires:</p> 
    13 <p class="alert">Le gestionnaire doit vérifier la validité de certains bulletins</p> 
     12<p>[% l('Temporary results') %]</p> 
     13<p class="alert">[% l('Poll administrator must validate some ballot') %]</p> 
    1414[% ELSE %] 
    15 <p>Resultats:</p> 
     15<p>[% l('Results:') %]</p> 
    1616[% END %] 
    17 <p>Nombre de choix à retenir: [% poll.info('choice_count') %]</p> 
     17<p>[% l('Number of choice to retain:') _ ' ' %][% poll.info('choice_count') %]</p> 
    1818 
    1919<table border="1"> 
    20 <tr><td>Participation</td><td>[% poll.signing_count %]</td><td>[% poll.signing_count / poll.voting_count * 100 | format('%.2f %%') IF poll.voting_count %]</td></tr> 
    21 <tr><td>Nombre de bulltetins</td><td>[% poll.ballot_count %]</td><td></td></tr> 
    22 <tr><td>Nombre de bulltetins blanc</td><td>[% poll.empty_ballot_count %]</td><td>[% poll.empty_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr> 
    23 <tr><td>Nombre de bulltetins nuls</td><td>[% poll.invalid_ballot_count %]</td><td>[% poll.invalid_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr> 
    24 <tr><td>Nombre de voix exprimées</td><td>[% poll.voices_ballot_count %]</td><td>[% poll.voices_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr> 
     20<tr><td>[% l('Participation' %]</td><td>[% poll.signing_count %]</td><td>[% poll.signing_count / poll.voting_count * 100 | format('%.2f %%') IF poll.voting_count %]</td></tr> 
     21<tr><td>[% l('Ballot Number') %]</td><td>[% poll.ballot_count %]</td><td></td></tr> 
     22<tr><td>[% l('Number of empty ballot') %]</td><td>[% poll.empty_ballot_count %]</td><td>[% poll.empty_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr> 
     23<tr><td>[% l('Number of nul ballot') %]</td><td>[% poll.invalid_ballot_count %]</td><td>[% poll.invalid_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr> 
     24<tr><td>[% l('Number of voices') %]</td><td>[% poll.voices_ballot_count %]</td><td>[% poll.voices_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr> 
    2525</table> 
    2626 
     
    2828[% FOREACH res = poll.results %] 
    2929[% IF loop.first %] 
    30 <p>Score:</p> 
     30<p>[% l('Score:') %]</p> 
    3131<table border="1"><tr> 
    32 <th>Légende:</th> 
    33 <td class="majabs">Majorité Absolue</td> 
    34 <td class="selected">Elus</td> 
    35 <td class="notselected">Non élu</td> 
     32<th>[% l('Legend:') %]</th> 
     33<td class="majabs">[% l('Absolute Majority') %]</td> 
     34<td class="selected">[% l('Elected') %]</td> 
     35<td class="notselected">l('Not elected') %]</td> 
    3636</tr></table><br> 
    3737<table border="1"> 
    38 <tr><th>Score</th><th>Ligne N°</th><th>choix</th><th>Nb voix</th><th>%</th><th></th></tr> 
     38<tr><th>Score</th><th>[% l('Line n°') %]</th><th>[% l('choice') %]</th><th>[% 
     39l('Number of voice') %]</th><th>[% l('%') %]</th><th></th></tr> 
    3940[% END %] 
    4041 
     
    6364[% END %] 
    6465[% ELSE %] 
    65 <p class="alert">Aucun suffrage exprimé.</p> 
     66<p class="alert">[% l('No results') %]</p> 
    6667[% END %] 
    6768</div> 
     
    7071[% IF loop.first %] 
    7172<div id="ballot_list" class="box"> 
    72 <p>Liste des bulletins:</p> 
     73<p>[% l('Ballot list:') %]</p> 
    7374<table border="1"> 
    74 <tr><th>numéro</th><th>Id</th> 
    75 <th>contenu (=> corrigé en) 
     75<tr><th>[% l('number') %]</th><th>[% l('Id') %]</th> 
     76<th>[% l('date (=> view as)') | html %] 
    7677[% IF poll.info('free_choice') %] 
    77 <br>(*: hors liste) 
     78<br>(*: [% l('not from list') %]) 
    7879[% END %] 
    79 </th><th>remarque</th></tr> 
     80</th><th>[% l('comment') %]</th></tr> 
    8081[% END %] 
    8182<tr> 
     
    99100[% invalid = '#' _ poll.ballot(id).info.invalid %] 
    100101[% IF invalid == '#1' %] 
    101 <span class="alert">Invalidé</span> 
     102<span class="alert">[% l('invalided') %]</span> 
    102103[% ELSIF invalid  == '#' %] 
    103 <i>doit être validé</i> 
     104<i>[% l('must be validated') %]</i> 
    104105[% END %] 
    105106</td> 
     
    113114[% ELSE %][% # can show result %] 
    114115<div class="page_box"> 
    115 <p>Les résultats ne sont pas encore publiés<p> 
     116<p>[% l('Results are not yet published') %]<p> 
    116117</div> 
    117118[% END %] 
  • trunk/root/templates/includes/poll_running.tt

    r227 r284  
    11<!-- $Id$ --> 
    22<div id="poll_running"> 
    3 <p>Le vote est actuellement en cours</p> 
    4 <p>Vous pouvez: <a href="[% c.uri_for('/ballot', c.model('Vote').poll(voteid).uid) %]">Voter ici</a></li></p> 
     3<p>[% l('Poll is currently running') %]</p> 
     4<p>[% l('You can') _ ' ' %]<a href="[% c.uri_for('/ballot', 
     5c.model('Vote').poll(voteid).uid) %]">[% l('vote here') %]</a></li></p> 
    56</div> 
  • trunk/root/templates/includes/signing_list.tt

    r227 r284  
    99[% IF loop.first %] 
    1010<div id="voting_list" class="box"> 
    11 <p>Liste des votants:</p> 
     11<p>[% l('Voting list') %]</p> 
    1212<table border="1"> 
    13 <tr><th>Numéro</th><th>Electeur</th> 
    14 [% IF poll_status != 'RUNNING' %]<th>Emargement</th>[% END %] 
     13<tr><th>[% l('Number') %]</th><th>[% l('voting') %]</th> 
     14[% IF poll_status != 'RUNNING' %]<th>[% l('sign') %]</th>[% END %] 
    1515</tr> 
    1616[% END %] 
     
    2121    [% "&lt;" IF voting.label %][% voting.mail | mail | html %][% "&gt;" IF voting.label %] 
    2222</td> 
    23 [% IF poll_status != 'RUNNING' %]<td>[% "A voté" IF voting.date %]</td>[% END %] 
     23[% IF poll_status != 'RUNNING' %]<td>[% l('has vote') IF voting.date %]</td>[% END %] 
    2424</tr> 
    2525[% IF loop.last %] 
Note: See TracChangeset for help on using the changeset viewer.