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!
_______________________________________________
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev