- Timestamp:
- 05/31/23 23:38:51 (11 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Epoll/View/Mail.pm
r434 r484 11 11 INCLUDE_PATH => Epoll->path_to( 'root', 'mail' ), 12 12 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', 14 16 ); 15 17 … … 23 25 24 26 =cut 27 28 sub utf8fix { 29 my ($self, $c, @string) = @_; 30 map { utf8::encode($_) } @string; 31 @string; 32 } 25 33 26 34 sub render { -
trunk/root/mail/ballot_confirm.tt
r335 r484 3 3 4 4 -------- 5 [% poll.info.label%]5 [% utf8fix(poll.info.label) %] 6 6 -------- 7 7 8 8 [% IF NOT poll.info.no_mail_ballot_id %] 9 9 [% l('Your ballot ID') %]: 10 [% ballotid%]10 [% utf8fix(ballotid) %] 11 11 [% END %] 12 12 -
trunk/root/mail/includes/loc.tt
r311 r484 1 1 [% MACRO l(text, args) BLOCK; 2 c.localize(text, args);2 utf8fix(c.localize(text, args)); 3 3 END; %] 4 4 -
trunk/root/mail/poll_reminder_voting.tt
r342 r484 11 11 [%- poll = vote.poll(p.poll) -%] 12 12 [% 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) %]. 15 15 16 16 [% END %] -
trunk/root/mail/poll_request.tt
r323 r484 1 1 [% l('You\'ve requested to create a new poll') %]: 2 [% label%]2 [% utf8fix(label) %] 3 3 4 4 [% l('Your request ID is') %]: -
trunk/root/mail/voting_passwd.tt
r323 r484 2 2 [% l('You are invited to participate in this poll') %] 3 3 4 [% poll.info.label%]4 [% utf8fix(poll.info.label) %] 5 5 6 6 -- … … 19 19 20 20 [% IF poll.info('description') %] 21 [% poll.info('description') %]21 [% utf8fix(poll.info('description')) %] 22 22 -------- 23 23 [%- END %] 24 24 [% IF poll.info('procedure') %] 25 [% poll.info('procedure') %]25 [% utf8fix(poll.info('procedure')) %] 26 26 -------- 27 27 [%- END %]
Note: See TracChangeset
for help on using the changeset viewer.