diff --git a/etc/csc.conf b/etc/csc.conf index 47cef8c..39393a8 100644 --- a/etc/csc.conf +++ b/etc/csc.conf @@ -22,8 +22,11 @@ cpe_autoconf_url="https://your.server.tld/autoconf/init" > + en + de + es /css/style.css /css/sipwise.css XMLin( '/usr/local/etc/csc.conf', ForceArray => 0); -$$xc{site_config}{language} = 'en' unless $$xc{site_config}{language} =~ /^\w+$/; +$$xc{site_config}{default_language} = 'en' unless $$xc{site_config}{default_language} =~ /^\w+$/; __PACKAGE__->config( authentication => {}, %$xc ); @@ -53,7 +53,7 @@ sub begin : Private { $c->response->headers->push_header( 'Vary' => 'Accept-Language' ); # hmm vary and param? # set default language - $c->session->{lang} = $c->config->{site_config}{language} unless $c->session->{lang}; + $c->session->{lang} = $c->config->{site_config}{default_language} unless $c->session->{lang}; if($c->request->params->{lang} =~ /^\w+$/) { $c->languages([$c->request->params->{lang}]); diff --git a/root/layout/html b/root/layout/html index 933639d..333cb3a 100644 --- a/root/layout/html +++ b/root/layout/html @@ -1,6 +1,6 @@ - +