Changeset 366 for trunk/lib/Epoll/Controller/Ballot.pm
- Timestamp:
- 10/06/10 04:00:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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},
Note: See TracChangeset
for help on using the changeset viewer.