diff options
author | franck cuny <franck@lumberjaph.net> | 2010-04-25 22:12:03 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-04-25 22:12:03 +0200 |
commit | 240aa2876b25d774030054516ed3b1628f02dc9d (patch) | |
tree | 4685c1afdb1907511c59f285556e0c69e5eeb055 | |
parent | add FIXME to application name (diff) | |
download | dancer-plugin-i18n-240aa2876b25d774030054516ed3b1628f02dc9d.tar.gz |
README
-rw-r--r-- | README | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/README b/README index 35bbdfc..d3f8d5c 100644 --- a/README +++ b/README @@ -1,12 +1,28 @@ NAME - Dancer::Plugin::I18n - + Dancer::Plugin::I18n - Intenationalization for Dancer SYNOPSIS - use Dancer::Plugin::I18n; + package myapp::I18N::fr; + use base 'myapp::I18N'; + our %Lexicon = ( hello => 'bonjour' ); + 1; + + package myapp; + use Dancer; + use Dancer::Plugin::I18n; + get '/' => sub { template 'index' }; + + # index.tt + hello in <% languages %> => <% l('hello') %> + # or + <% languages('fr') %>This is an <% l('hello') %> DESCRIPTION - Dancer::Plugin::I18n is + Dancer::Plugin::I18n add Locale::Maketext to your Dancer application +METHODS + languages + l AUTHOR franck cuny <franck@lumberjaph.net> |