Changeset 364
- Timestamp:
- 10/06/10 03:41:56 (14 years ago)
- Location:
- trunk/lib/Epoll/Controller
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Epoll/Controller/Admin.pm
r362 r364 60 60 if ($poll->check_date_max($c->req->param('start'))) { 61 61 if (! $poll->check_date_max($c->req->param('end'), $c->req->param('start'))) { 62 $c->stash->{dateerror} = "Le vote se termine avant de commencer";62 $c->stash->{dateerror} = $c->l('The vote finish before starting'); 63 63 next; 64 64 } 65 65 } else { 66 $c->stash->{dateerror} = "Le debut du vote doit être dans le futur";66 $c->stash->{dateerror} = $c->('The start of the vote must be in the future'); 67 67 next; 68 68 } 69 69 } elsif ($c->req->param('end') || $c->req->param('start')) { 70 $c->stash->{dateerror} = "Vous devez définir un debut et une fin";70 $c->stash->{dateerror} = $c->l('You must define a start and a end date'); 71 71 next; 72 72 } … … 161 161 if (!$poll->auth_poll($password)) { 162 162 $c->stash->{page}{title} = $poll->info('label') . 163 ': Login d\'administration';163 $c->l(': Administrator login'); 164 164 $c->session->{'vpass' . $c->stash->{voteid}} = undef; 165 165 $c->stash->{template} = 'admin/login.tt'; … … 184 184 $c->forward('auth') or return; 185 185 $c->forward('modify_poll'); 186 $c->stash->{page}{title} = $poll->info('label') . ': Administration';186 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l('Administration'); 187 187 } 188 188 … … 218 218 From => $poll->info->{owner}, 219 219 To => $voting->info->{mail}, 220 Subject => "Invitation à voter",220 Subject => $c->l("Voting invitation"), 221 221 mail => { 222 222 voteid => $id, … … 231 231 } 232 232 233 $c->stash->{page}{title} = $poll->info('label') . ': Administration, liste des electeurs';233 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l('Administration') . ', ' . $c->l('voters list'); 234 234 } 235 235 … … 281 281 $c->forward('auth') or return; 282 282 $c->forward('modify_poll'); 283 $c->stash->{page}{title} = $poll->info('label') . ': Administration, bulletin';283 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l('Administration') . ', '. $->l('ballots'); 284 284 } 285 285 … … 296 296 $c->forward('auth') or return; 297 297 $c->forward('modify_poll'); 298 $c->stash->{page}{title} = $poll->info('label') . ': Administration, Date';298 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l('Administration') . ', '. $c->l('Date'); 299 299 } 300 300 … … 323 323 $c->forward('auth') or return; 324 324 $c->forward('modify_poll'); 325 $c->stash->{page}{title} = $poll->info('label') . ': Administration: Validation';325 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l('Administration') . ', ' . $c->l('Validation'); 326 326 327 327 $c->forward('ballotfilter'); -
trunk/lib/Epoll/Controller/Ajax.pm
r267 r364 39 39 if ($poll->check_date_max($start)) { 40 40 if ($poll->check_date_max($end, $start)) { 41 $c->response->body('<input type="submit" name="polldate" value=" Enregistrer">');41 $c->response->body('<input type="submit" name="polldate" value="' . $c->l('Enregistrer') . '">'); 42 42 } else { 43 $c->response->body("Le vote se termine avant de commencer"); 43 44 $c->response->body( $c->l('The vote finish before starting')); 44 45 } 45 46 } else { 46 $c->response->body( "Le debut du vote doit être dans le futur");47 $c->response->body( $c->('The start of the vote must be in the future')); 47 48 } 48 49 } else { 49 $c->response->body( "Vous devez définir un debut et une fin");50 $c->response->body( $c->l('You must define a start and a end date')); 50 51 } 51 52 } -
trunk/lib/Epoll/Controller/Ballot.pm
r267 r364 49 49 50 50 if (!$c->model('Vote')->poll($id)->auth_voting($mail, $password)) { 51 $c->stash->{page}{title} = $poll->info('label') . ': Login';51 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l('Login'); 52 52 $c->session->{$puid} = undef; 53 53 $c->stash->{template} = 'ballot/login.tt'; … … 64 64 $c->session->{mypoll}{$puid} ||= 0; 65 65 66 $c->stash->{page}{title} = $poll->info('label') . ': Bulletin';66 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l('Bulletin'); 67 67 68 68 # login succeed, but those this user has already voted … … 101 101 if (scalar(@ballot) > $poll->info('choice_count')) { 102 102 $c->req->parameters->{'ballot'} = ''; 103 $c->stash->{vote_error} = 'Seulement '.104 $poll->info('choice_count') . ' choix possible';103 $c->stash->{vote_error} = $c->l('Only ') . 104 $poll->info('choice_count') . ' ' . $c->l('possible choices'); 105 105 return; 106 106 } … … 114 114 if (scalar(@twices)) { 115 115 $c->req->parameters->{'ballot'} = ''; 116 $c->stash->{vote_error} = 'Une ou plusieurs valeurs sont en double: '.116 $c->stash->{vote_error} = $c->l('One or more values are duplicated:') . 117 117 join(' ,', map { qq'"$_"' } @twices); 118 118 return; … … 131 131 From => $mail, 132 132 To => $mail, 133 Subject => 'Confirmation de vote: '. $poll->info('label'),133 Subject => $c->l('Vote confirmation:') . $poll->info('label'), 134 134 mail => { 135 135 ballotid => $c->stash->{ballotid}, -
trunk/lib/Epoll/Controller/Newpoll.pm
r308 r364 31 31 my ( $self, $c ) = @_; 32 32 33 $c->stash->{page}{title} = 'Créer un nouveau vote';33 $c->stash->{page}{title} = $c->l('Create a new vote'); 34 34 if ($c->req->param('mail')) { 35 35 if ($c->config->{newpollpasswd}) { … … 59 59 [ 'poll_request.tt', { 60 60 To => $c->req->param('mail'), 61 Subject => "New poll request",61 Subject => $c->l("New poll request"), 62 62 mail => { 63 63 label => $c->req->param('label'), … … 79 79 80 80 if (!$c->model('Vote')->poll_request_info($id)) { 81 $c->stash->{page}{title} = "Aucune requête de création de vote";81 $c->stash->{page}{title} = $c->l("No vote creation request"); 82 82 $c->stash->{template} = 'newpoll/norequest.tt'; 83 83 return; 84 84 } 85 85 86 $c->stash->{page}{title} = 'Confirmer la création d\'un nouveau vote';86 $c->stash->{page}{title} = $c->l('Confirm new vote creation'); 87 87 if ($c->req->param('passwd')) { 88 88 my $pid = $c->model('Vote')->poll_from_request($id, $c->req->param('passwd')); -
trunk/lib/Epoll/Controller/Root.pm
r251 r364 48 48 [ 'poll_reminder_voting.tt', { 49 49 To => $c->req->param('mailvoting'), 50 Subject => 'Poll request reminder',50 Subject => $c->l('Poll request reminder'), 51 51 mail => { 52 label => 'Poll request reminder',52 label => $c->l('Poll request reminder'), 53 53 polls_owner => \@polls_owner, 54 54 polls_voting => \@polls_voting,
Note: See TracChangeset
for help on using the changeset viewer.