Ignore:
Timestamp:
10/06/10 04:00:45 (14 years ago)
Author:
nanardon
Message:
  • fix localize function name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Epoll/Controller/Ballot.pm

    r364 r366  
    4949 
    5050    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'); 
    5252        $c->session->{$puid} = undef; 
    5353        $c->stash->{template} = 'ballot/login.tt'; 
     
    6464    $c->session->{mypoll}{$puid} ||= 0; 
    6565 
    66     $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->l('Bulletin'); 
     66    $c->stash->{page}{title} = $poll->info('label') . ': ' . $c->localize('Bulletin'); 
    6767 
    6868    # login succeed, but those this user has already voted 
     
    101101    if (scalar(@ballot) > $poll->info('choice_count')) { 
    102102        $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'); 
    105105        return; 
    106106    } 
     
    114114        if (scalar(@twices)) { 
    115115            $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:') . 
    117117                join(' ,', map { qq'"$_"' } @twices); 
    118118            return; 
     
    131131                From => $mail, 
    132132                To => $mail, 
    133                 Subject => $c->l('Vote confirmation:') . $poll->info('label'), 
     133                Subject => $c->localize('Vote confirmation:') . $poll->info('label'), 
    134134                mail => { 
    135135                    ballotid => $c->stash->{ballotid}, 
Note: See TracChangeset for help on using the changeset viewer.