repo.or.cz
/
blog.pm-common-perl-mods.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
perltidy and some cleanups.
[blog.pm-common-perl-mods.git]
/
Common-Dispatcher-LangDetect
/
t
/
lib
/
TestApp.pm
blob
e46a50b8bb69e3141b265138ede1c5208cfa8a3e
1
package
TestApp
;
2
use
warnings
;
3
use
strict
;
4
5
use
Catalyst qw
/ I18N /
;
6
7
use
Test
::
More
;
8
9
sub default
:
Private
{
10
my
(
$self
,
$c
) =
@_
;
11
12
$c
->
res
->
body
(
$c
->
language
);
13
}
14
15
__PACKAGE__
->
dispatcher_class
(
'Common::Dispatcher::LangDetect'
);
16
17
__PACKAGE__
->
config
->{
'languages'
} = {
18
en
=>
'English'
,
19
ru
=>
'Русский'
20
};
21
22
__PACKAGE__
->
setup
;
23
24
1
;