summary refs log tree commit diff
path: root/t/lib/TestApp.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-04-25 22:08:50 +0200
committerfranck cuny <franck@lumberjaph.net>2010-04-25 22:08:50 +0200
commitb03e09d01466a7e720c0c16c4319a3853b29005c (patch)
tree2c8193d9c379d9394fd2c4b911ddf788c9cd5c70 /t/lib/TestApp.pm
parentlanguages method to set various languages; l method to localize some text; POD (diff)
downloaddancer-plugin-i18n-b03e09d01466a7e720c0c16c4319a3853b29005c.tar.gz
a simple application to test
Diffstat (limited to 't/lib/TestApp.pm')
-rw-r--r--t/lib/TestApp.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/lib/TestApp.pm b/t/lib/TestApp.pm
new file mode 100644
index 0000000..966ec30
--- /dev/null
+++ b/t/lib/TestApp.pm
@@ -0,0 +1,16 @@
+package TestApp;
+
+use Dancer;
+use Dancer::Plugin::I18n;
+
+get '/' => sub { template 'index'; };
+
+package TestApp::I18N::de;
+use base 'TestApp::I18N';
+our %Lexicon = ( hello => 'hallo' );
+
+package TestApp::I18N::fr;
+use base 'TestApp::I18N';
+our %Lexicon = ( hello => 'bonjour' );
+
+1;