- Timestamp:
- 12/16/09 11:04:36 (14 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.PL
r261 r275 14 14 requires 'Catalyst::Plugin::Prototype'; 15 15 requires 'Catalyst::View::TT'; 16 requires 'Catalyst::Plugin::I18N'; 16 17 17 18 requires 'YAML'; # This should reflect the config file format you've chosen … … 52 53 return " 53 54 55 pot: lib/Epoll/I18N/messages.pot 56 57 po: lib/Epoll/I18N/fr.po 58 59 lib/Epoll/I18N/messages.pot: 60 \tcat MANIFEST | egrep '(.pm|.tt)' | xargs xgettext.pl -o lib/Epoll/I18N/messages.pot 61 62 lib/Epoll/I18N/fr.po: lib/Epoll/I18N/messages.pot 63 \tmsginit --input=lib/Epoll/I18N/messages.pot --output=lib/Epoll/I18N/fr.po --locale=fr 64 54 65 svnmanifest: 55 66 \tsvn ls -R| grep -v '/\$\$' > MANIFEST … … 61 72 \tmd5sum -c control/md5sum 62 73 63 .PHONY: md5sum checkmd5 svnmanifest 74 .PHONY: md5sum checkmd5 svnmanifest pot lib/Epoll/I18N/messages.pot 64 75 65 76 ChangeLog: -
trunk/epoll.spec.in
r255 r275 15 15 16 16 BuildRequires: perl(Catalyst::Plugin::Prototype) 17 BuildRequires: perl(Catalyst::Plugin::I18N) 18 19 Requires: perl(Catalyst::Plugin::Prototype) 20 Requires: perl(Catalyst::Plugin::I18N) 17 21 18 22 %description -
trunk/lib/Epoll.pm
r259 r275 22 22 Session::State::Cookie 23 23 Prototype 24 I18N 24 25 /; 25 26 … … 58 59 __PACKAGE__->config->{session}{dbi_dsn} = 'dbi:Pg:' . __PACKAGE__->config->{db}; 59 60 61 sub begin : Private { 62 my ( $self, $c ) = @_; 63 64 my $locale = $c->request->param('locale'); 65 66 $c->loc('foo bar'); 67 68 $c->response->headers->push_header( 'Vary' => 'Accept-Language' ); # hmm vary and param? 69 $c->languages( $locale ? [ $locale ] : undef 70 ); 71 } 60 72 61 73 =head1 NAME -
trunk/root/templates/default.tt
r259 r275 5 5 <form action="[% c.uri_for %]" method="POST"> 6 6 [% IF novoting %] 7 <p class="warning"> Aucun vote en cours ne concerne[% novoting | html %].</p>7 <p class="warning">[% c.loc('Aucun vote en cours ne concerne') %] [% novoting | html %].</p> 8 8 [% END %] 9 9 [% IF sendvoting %] -
trunk/root/templates/includes/header.tt
r262 r275 26 26 <!-- $Id$ --> 27 27 <div id="header"> 28 <p id="title"><b>Epoll:</b> systÚme de vote en ligne</p>28 <p id="title"><b>Epoll:</b> [% c.loc('systÚme de vote en ligne') %]</p> 29 29 <p id="now" style="float: right">Page générée le [% c.model('Vote').dbtime | html %]</p> 30 30 <p id="menu">
Note: See TracChangeset
for help on using the changeset viewer.