sirdopes

Well-Known Member
PartnerNOC
Sep 25, 2007
141
0
66
Did cpanel change the location of where it stores the language for an account? If I change the language using whm, it does not change. I can change the language using the change language menu in cpanel though. When I do change the language, it does not change in the user file in /var/cpanel/users/username. Cpanel is showing spanish, but the user file still shows english. Does anyone have any thoughts on what I am missing?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,578
52
308
cPanel Access Level
Root Administrator
When a language is selected within the cPanel interface, a file in ~/.cpanel is updated with the choice. This choice always overrides what is set within WHM.
 

sirdopes

Well-Known Member
PartnerNOC
Sep 25, 2007
141
0
66
Language

Do you know what the file name that is changed is? Is it stored it text form? I tried setting the language to spanish and searching the files in ~/.cpanel. I didn't get any matches.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,578
52
308
cPanel Access Level
Root Administrator
Do you know what the file name that is changed is? Is it stored it text form? I tried setting the language to spanish and searching the files in ~/.cpanel. I didn't get any matches.
Sorry, I was incorrect. The value is stored in ~/.lang
 

sirdopes

Well-Known Member
PartnerNOC
Sep 25, 2007
141
0
66
Fixed

That was the file I was looking for. Thanks for you help Kenneth.

Carl
 

dundarr

Registered
Nov 12, 2004
3
0
151
English / spanish bugged .lang file

Hi, may be this helps somebody .

When creating a new account everything works fine. But when importing a cpanel account from another server, even having spanish as the package language, we found out that in the .lang file we have 'english'. The account was in spanish before moving.
The process we follow is : move the account and after, assign a package to the account ( with spanish set as lang ).
The solution we use now is just erase the .lang file, so it seems to apply the package settings correctly.

We are using WHM 11.23.2 cPanel 11.23.4-S26138 on CENTOS Enterprise 5.2 i686 .
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,578
52
308
cPanel Access Level
Root Administrator
Hi, may be this helps somebody .

When creating a new account everything works fine. But when importing a cpanel account from another server, even having spanish as the package language, we found out that in the .lang file we have 'english'. The account was in spanish before moving.
The process we follow is : move the account and after, assign a package to the account ( with spanish set as lang ).
The solution we use now is just erase the .lang file, so it seems to apply the package settings correctly.

We are using WHM 11.23.2 cPanel 11.23.4-S26138 on CENTOS Enterprise 5.2 i686 .
That shouldn't happen.

Is the language being defined primarily in the package or via the cPanel interface?

A simple test transfer showed that when the account files were restored, the proper .lang file was restored. The language was set at time of account creation (not within a package) and then the account was immediately transferred.