summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-04-25 22:12:03 +0200
committerfranck cuny <franck@lumberjaph.net>2010-04-25 22:12:03 +0200
commit240aa2876b25d774030054516ed3b1628f02dc9d (patch)
tree4685c1afdb1907511c59f285556e0c69e5eeb055 /README
parentadd FIXME to application name (diff)
downloaddancer-plugin-i18n-240aa2876b25d774030054516ed3b1628f02dc9d.tar.gz
README
Diffstat (limited to '')
-rw-r--r--README22
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>