
Hi, I would suggest some small changes in the files Kernel/System/Web/InterfaceAgent.pm, Kernel/System/Web/InterfaceCustomer.pm and Kernel/System/Web/InterfacePublic.pm. The default language for the interfaces is allways 'en'. I think line (in all three files) ~120 Lang => '', should look like Lang => $Self->{ConfigObject}->Get('DefaultLanguage') || '', Nothing worldshaking, but our customers and agents complained about it. Stephan

Hi Stephan, Stephan Bechstedt schrieb:
I would suggest some small changes in the files
Kernel/System/Web/InterfaceAgent.pm, Kernel/System/Web/InterfaceCustomer.pm and Kernel/System/Web/InterfacePublic.pm.
The default language for the interfaces is allways 'en'. I think line (in all three files) ~120
Lang => '',
should look like
Lang => $Self->{ConfigObject}->Get('DefaultLanguage') || '',
Nothing worldshaking, but our customers and agents complained about it.
Normally the default frontend language is detected in Kernel/Output/HTML/Generic.pm (the LayoutObject) based on browser sent headers. If there is no matching language in send browser header the DefaultLanguage from config is used. See Kernel/Language.pm line ~ 81. [...] # user language $Self->{UserLanguage} = $Param{UserLanguage} || $Self->{ConfigObject}->Get('DefaultLanguage') || 'en'; [...] So it should already work.
Stephan
Martin ((otrs)) :: OTRS GmbH :: Europaring 4 :: D - 94315 Straubing Fon: +49 (0) 9421 1862 760 :: Fax: +49 (0) 9421 1862 769 http://www.otrs.com/ :: Communication with success!

Hi Martin,
I would suggest some small changes in the files
Kernel/System/Web/InterfaceAgent.pm, Kernel/System/Web/InterfaceCustomer.pm and Kernel/System/Web/InterfacePublic.pm.
The default language for the interfaces is allways 'en'. I think line (in all three files) ~120
Lang => '',
should look like
Lang => $Self->{ConfigObject}->Get('DefaultLanguage') || '',
Nothing worldshaking, but our customers and agents complained about it.
Stephan
Normally the default frontend language is detected in Kernel/Output/HTML/Generic.pm (the LayoutObject) based on browser sent headers. If there is no matching language in send browser header the DefaultLanguage from config is used.
See Kernel/Language.pm line ~ 81.
[...] # user language $Self->{UserLanguage} = $Param{UserLanguage} || $Self->{ConfigObject}->Get('DefaultLanguage') || 'en'; [...]
So it should already work.
Martin
You're right. We're using the English version of firefox, so we allways get the English version of the login screen. For our system I removed the detection based on http headers. Thanks, Stephan

Hi Stephan, steff@thebackend.de schrieb:
[...] You're right. We're using the English version of firefox, so we allways
Fine! :)
get the English version of the login screen. For our system I removed the detection based on http headers.
Cool.
Thanks, Stephan
PS: JFI if you are looking for more development information, there is a OTRS Developer Manual in draft state: http://otrs.de/~me/doc-developer/en/ Martin ((otrs)) :: OTRS GmbH :: Europaring 4 :: D - 94315 Straubing Fon: +49 (0) 9421 1862 760 :: Fax: +49 (0) 9421 1862 769 http://www.otrs.com/ :: Communication with success!
participants (3)
-
Martin Edenhofer
-
steff@thebackend.de
-
Stephan Bechstedt