How to change default customer.pl language?

Moderator: crythias

Locked
ericchaves
Znuny newbie
Posts: 21
Joined: 15 Oct 2010, 16:10
Znuny Version: 2.4.8

How to change default customer.pl language?

Post by ericchaves »

Ok, me again... :)

Hopefully this would be my last question for sometime now. How do I change the default language for customer.pl? I searched old posts and found some answers but none seem to be working.

Thanks for the help.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to change default customer.pl language?

Post by crythias »

The default language overall is defined in Config.pm:

Code: Select all

$Self->{DefaultLanguage} = 'en';

Code: Select all

            SelectedID => $Self->{ParamObject}->GetParam( Param => 'UserLanguage' )
                || $Param{UserData}->{UserLanguage}
                || $Self->{LayoutObject}->{UserLanguage}
                || $Self->{ConfigObject}->Get('DefaultLanguage'),
This is where Kernel/Output/HTML/PreferencesLanguage.pm gets its choice.

I don't know that customer.pl will have anything different from DefaultLanguage, though.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ericchaves
Znuny newbie
Posts: 21
Joined: 15 Oct 2010, 16:10
Znuny Version: 2.4.8

Re: How to change default customer.pl language?

Post by ericchaves »

Hy Crythias,


That`s what I did, I added the default language, but it had no effect when acessing Customer.pl. The page still in english by default.
Below is how I changed in Config.pm.

Code: Select all

    # ---------------------------------------------------- #
    # insert your own config settings "here"               #
    # config settings taken from Kernel/Config/Defaults.pm #
    # ---------------------------------------------------- #
    # $Self->{SessionUseCookie} = 0;
    # $Self->{CheckMXRecord} = 0;
    $Self->{DefaultLanguage} = 'pt-BR';
Could guess what I missing here?

By the way, Thanks for all the support you are providing to us in here.

Best regards,
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: How to change default customer.pl language?

Post by crythias »

Is this a problem for the Login screen or once a customer is logged in? If the customer is logged in, he should change his preferences.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
ericchaves
Znuny newbie
Posts: 21
Joined: 15 Oct 2010, 16:10
Znuny Version: 2.4.8

Re: How to change default customer.pl language?

Post by ericchaves »

In the login screen. If a customer changes his/her preference, after logon the selected language is being used. Also, when the user logoff, the "logoff successfully"
screen also is in the correct language. My only concern is with the Login and the enrollment screens.

I also notices a type in my config, I was using pt-BR instead of pt_BR, but fixing it had no effect on the DefaultLanguage.
crythias wrote:Is this a problem for the Login screen or once a customer is logged in? If the customer is logged in, he should change his preferences.
Cheers,
Locked