Catalyst-Plugin-I18N
view release on metacpan or search on metacpan
lib/Catalyst/Plugin/I18N/Manual.pod view on Meta::CPAN
=head1 OUTLINE
Prerequisites:
- perl >= 5.8.0
- Catalyst >= 5.33
- Catalyst::Plugin::I18N >= 0.04
- Catalyst::Plugin::Unicode >= 0.2
- Catlayst::View::TT && Template-Toolkit >= 2.14
- GNU gettext utilities
- An editor that understands UTF-8 and Byte Order Mark (BOM)
$ catalyst.pl MyApp
created "MyApp"
created "MyApp/script"
created "MyApp/lib"
created "MyApp/root"
created "MyApp/root/static"
created "MyApp/root/static/images"
created "MyApp/t"
created "MyApp/lib/MyApp"
lib/Catalyst/Plugin/I18N/Manual.pod view on Meta::CPAN
$c->response->content_type('text/plain; charset=utf-8');
$c->stash(
name => $name,
template => 'test.tt'
);
$c->forward('MyApp::View::TT');
}
$ vim root/test.tt # Save file in UTF-8 with BOM
[% c.loc( 'Welcome to my place [_1]!', c.stash.name ) %]
$ xgettext.pl --output=lib/MyApp/I18N/messages.pot --directory=lib/ --directory=root/
$ msgmerge --update lib/MyApp/I18N/sv.po lib/MyApp/I18N/messages.pot
. done.
$ vim lib/MyApp/I18N/sv.po
#. (c.stash.name)
lib/Catalyst/Plugin/I18N/Manual.pod view on Meta::CPAN
=over 4
=item Internationalization and localization
L<http://en.wikipedia.org/wiki/Internationalization_and_localization>
=item Locale
L<http://en.wikipedia.org/wiki/Locale>
=item Byte Order Mark (BOM)
L<http://en.wikipedia.org/wiki/Byte_Order_Mark>
=item Character encoding
L<http://en.wikipedia.org/wiki/Character_encoding>
=item Collation
L<http://en.wikipedia.org/wiki/Collation>
( run in 0.473 second using v1.01-cache-2.11-cpan-e9daa2b36ef )