Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    @@ index.html.ep
    
    %= l 'hello world'
    
  2. or download this
    App
    |+- App.pl
    |- I18N
    |  |- fr.pm
    |  +- pt_br.pm
    
  3. or download this
    use Mojolicious::Lite;
    
    ...
    @@ index.html.ep
    
    %= l 'hello world'
    
  4. or download this
    package App::I18N::pt_br;
    use Mojo::Base 'Locale::Maketext';
    use utf8;
    
    our %Lexicon = ('hello world'=> 'Olá Mundo');