From 240aa2876b25d774030054516ed3b1628f02dc9d Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sun, 25 Apr 2010 22:12:03 +0200 Subject: README --- README | 22 +++++++++++++++++++--- 1 file 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 -- cgit v1.2.3