summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen.pm
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-03-27 18:43:31 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-03-27 18:43:31 +0100
commit6c552af10823c69dc740fea696622d543e297a1e (patch)
tree33c90615ae8351ee3f986e471dcd7ab668891dd9 /lib/DBInfoscreen.pm
parent1d9f62e14a7da11fa51e04854efbc6d5fd72a6ac (diff)
Remove I18N for now. It's incompatible with caching proxy setups.
Diffstat (limited to 'lib/DBInfoscreen.pm')
-rw-r--r--lib/DBInfoscreen.pm18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/DBInfoscreen.pm b/lib/DBInfoscreen.pm
index a3f22bf..c33a703 100644
--- a/lib/DBInfoscreen.pm
+++ b/lib/DBInfoscreen.pm
@@ -38,12 +38,6 @@ sub startup {
chomp $self->config->{version};
$self->defaults( version => $self->config->{version} // 'UNKNOWN' );
- $self->plugin(
- I18N => {
- default => 'de',
- },
- );
-
# Generally, the reverse proxy handles compression.
# Also, Mojolicious compression breaks legacy callback-based JSON endpoints
# for some clients.
@@ -62,18 +56,6 @@ sub startup {
if ( $cookie->name eq 'theme' ) {
$self->session( 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);
- }
}
}
);