Amon2-Plugin-L10N

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

  installing dependent module of amon2-xgettext.pl
      $ cpanm --with-suggests Amon2::Plugin::L10N

    dependnt module list in the cpanfile file.

  write your application
  run amon2-xgettext.pl
      $ cd your_amon2_proj_base_dir
      $ perl amon2-xgettext.pl en ja fr zh-tw

  edit .po files
      $ vim po/ja.po
      $ vim po/zh-tw.po

Add Amon2 Context Method
  $c->l10n_language_detection
    Language that is detected will return.

  $c->loc($message), $c->loc('foo %1 .. %2 ...', @args);
    It will return the text in the appropriate language.

lib/Amon2/Plugin/L10N.pm  view on Meta::CPAN


dependnt module list in the L<cpanfile> file.

=head2 write your application

=head2 run amon2-xgettext.pl

  $ cd your_amon2_proj_base_dir
  $ perl amon2-xgettext.pl en ja fr zh-tw

=head2 edit .po files

  $ vim po/ja.po
  $ vim po/zh-tw.po

=head1 Add Amon2 Context Method

=head2 $c->l10n_language_detection

Language that is detected will return.



( run in 0.435 second using v1.01-cache-2.11-cpan-de7293f3b23 )