summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/DBInfoscreen.pm')
-rw-r--r--lib/DBInfoscreen.pm14
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm
index c8960c9..4bf1eea 100644
--- a/lib/DBInfoscreen.pm
+++ b/lib/DBInfoscreen.pm
@@ -61,7 +61,19 @@ sub startup {
for my $cookie ( @{ $self->req->cookies } ) {
if ( $cookie->name eq 'theme' ) {
$self->session( theme => $cookie->value );
- return;
+ say 'found theme ' . $cookie->value;
+ }
+ elsif ( $cookie->name eq 'lang' ) {
+ my $l = $cookie->value;
+ if ( $l eq 'de' or $l eq 'en' ) {
+ $self->languages($l);
+ }
+ }
+ }
+
+ if ( my $l = $self->param('lang') ) {
+ if ( $l eq 'de' or $l eq 'en' ) {
+ $self->languages($l);
}
}
}