- Timestamp:
- 10/06/10 04:00:45 (14 years ago)
- Location:
- trunk/lib/Epoll/Controller
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Epoll/Controller/Admin.pm
r364 r366 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} = $c->l ('The vote finish before starting');62 $c->stash->{dateerror} = $c->localize('The vote finish before starting'); 63 63 next; 64 64 } … … 68 68 } 69 69 } elsif ($c->req->param('end') || $c->req->param('start')) { 70 $c->stash->{dateerror} = $c->l ('You must define a start and a end date');70 $c->stash->{dateerror} = $c->localize('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 $c->l (': Administrator login');163 $c->localize(': 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') . ': ' . $c->l ('Administration');186 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->localize('Administration'); 187 187 } 188 188 … … 218 218 From => $poll->info->{owner}, 219 219 To => $voting->info->{mail}, 220 Subject => $c->l ("Voting invitation"),220 Subject => $c->localize("Voting invitation"), 221 221 mail => { 222 222 voteid => $id, … … 231 231 } 232 232 233 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l ('Administration') . ', ' . $c->l('voters list');233 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->localize('Administration') . ', ' . $c->localize('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') . ': ' . $c->l ('Administration') . ', '. $->l('ballots');283 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->localize('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') . ': ' . $c->l ('Administration') . ', '. $c->l('Date');298 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->localize('Administration') . ', '. $c->localize('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') . ': ' . $c->l ('Administration') . ', ' . $c->l('Validation');325 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->localize('Administration') . ', ' . $c->localize('Validation'); 326 326 327 327 $c->forward('ballotfilter'); -
trunk/lib/Epoll/Controller/Ajax.pm
r364 r366 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="' . $c->l ('Enregistrer') . '">');41 $c->response->body('<input type="submit" name="polldate" value="' . $c->localize('Enregistrer') . '">'); 42 42 } else { 43 43 44 $c->response->body( $c->l ('The vote finish before starting'));44 $c->response->body( $c->localize('The vote finish before starting')); 45 45 } 46 46 } else { 47 $c->response->body( $c-> ('The start of the vote must be in the future'));47 $c->response->body( $c->localize('The start of the vote must be in the future')); 48 48 } 49 49 } else { 50 $c->response->body( $c->l ('You must define a start and a end date'));50 $c->response->body( $c->localize('You must define a start and a end date')); 51 51 } 52 52 } -
trunk/lib/Epoll/Controller/Ballot.pm
r364 r366 49 49 50 50 if (!$c->model('Vote')->poll($id)->auth_voting($mail, $password)) { 51 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l ('Login');51 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->localize('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') . ': ' . $c->l ('Bulletin');66 $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->localize('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} = $c->l ('Only ') .104 $poll->info('choice_count') . ' ' . $c->l ('possible choices');103 $c->stash->{vote_error} = $c->localize('Only ') . 104 $poll->info('choice_count') . ' ' . $c->localize('possible choices'); 105 105 return; 106 106 } … … 114 114 if (scalar(@twices)) { 115 115 $c->req->parameters->{'ballot'} = ''; 116 $c->stash->{vote_error} = $c->l ('One or more values are duplicated:') .116 $c->stash->{vote_error} = $c->localize('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 => $c->l ('Vote confirmation:') . $poll->info('label'),133 Subject => $c->localize('Vote confirmation:') . $poll->info('label'), 134 134 mail => { 135 135 ballotid => $c->stash->{ballotid}, -
trunk/lib/Epoll/Controller/Newpoll.pm
r364 r366 31 31 my ( $self, $c ) = @_; 32 32 33 $c->stash->{page}{title} = $c->l ('Create a new vote');33 $c->stash->{page}{title} = $c->localize('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 => $c->l ("New poll request"),61 Subject => $c->localize("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} = $c->l ("No vote creation request");81 $c->stash->{page}{title} = $c->localize("No vote creation request"); 82 82 $c->stash->{template} = 'newpoll/norequest.tt'; 83 83 return; 84 84 } 85 85 86 $c->stash->{page}{title} = $c->l ('Confirm new vote creation');86 $c->stash->{page}{title} = $c->localize('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
r364 r366 48 48 [ 'poll_reminder_voting.tt', { 49 49 To => $c->req->param('mailvoting'), 50 Subject => $c->l ('Poll request reminder'),50 Subject => $c->localize('Poll request reminder'), 51 51 mail => { 52 label => $c->l ('Poll request reminder'),52 label => $c->localize('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.