Changeset 484


Ignore:
Timestamp:
05/31/23 23:38:51 (11 months ago)
Author:
nanardon
Message:

Utf8 fixes

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Epoll/View/Mail.pm

    r434 r484  
    1111    INCLUDE_PATH => Epoll->path_to( 'root', 'mail' ), 
    1212    PLUGIN_BASE => 'Epoll::Template::Plugin', 
    13     PRE_PROCESS => [ 'includes/loc.tt', ], 
     13    PRE_PROCESS => [ 'includes/loc.tt' ], 
     14    expose_methods => [ qw(utf8fix) ], 
     15    ENCODING => 'utf-8', 
    1416); 
    1517 
     
    2325 
    2426=cut 
     27 
     28sub utf8fix { 
     29    my ($self, $c, @string) = @_; 
     30    map { utf8::encode($_) } @string; 
     31    @string; 
     32} 
    2533 
    2634sub render { 
  • trunk/root/mail/ballot_confirm.tt

    r335 r484  
    33 
    44-------- 
    5 [% poll.info.label %] 
     5[% utf8fix(poll.info.label) %] 
    66-------- 
    77 
    88[% IF NOT poll.info.no_mail_ballot_id %] 
    99[% l('Your ballot ID') %]: 
    10 [% ballotid %] 
     10[% utf8fix(ballotid) %] 
    1111[% END %] 
    1212 
  • trunk/root/mail/includes/loc.tt

    r311 r484  
    11[% MACRO l(text, args) BLOCK; 
    2     c.localize(text, args); 
     2    utf8fix(c.localize(text, args)); 
    33END; %] 
    44 
  • trunk/root/mail/poll_reminder_voting.tt

    r342 r484  
    1111[%- poll = vote.poll(p.poll) -%] 
    1212[% c.uri_for('/', 'ballot', poll.uid) %] 
    13 [% poll.info('label') %] 
    14 [% l('This poll end') %]: [% poll.info.dend %] [% poll.info.hend %]. 
     13[% utf8fix(poll.info('label')) %] 
     14[% l('This poll end') %]: [% utf8fix(poll.info.dend) %] [% utf8fix(poll.info.hend) %]. 
    1515 
    1616[% END %] 
  • trunk/root/mail/poll_request.tt

    r323 r484  
    11[% l('You\'ve requested to create a new poll') %]: 
    2 [% label %] 
     2[% utf8fix(label) %] 
    33 
    44[% l('Your request ID is') %]: 
  • trunk/root/mail/voting_passwd.tt

    r323 r484  
    22[% l('You are invited to participate in this poll') %] 
    33 
    4 [% poll.info.label %] 
     4[% utf8fix(poll.info.label) %] 
    55 
    66-- 
     
    1919 
    2020[% IF poll.info('description') %] 
    21 [% poll.info('description') %] 
     21[% utf8fix(poll.info('description')) %] 
    2222-------- 
    2323[%- END %] 
    2424[% IF poll.info('procedure') %] 
    25 [% poll.info('procedure') %] 
     25[% utf8fix(poll.info('procedure')) %] 
    2626-------- 
    2727[%- END %] 
Note: See TracChangeset for help on using the changeset viewer.