The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Language changes

Discussion in 'General Discussion' started by sirdopes, Jul 26, 2008.

  1. sirdopes

    sirdopes Well-Known Member
    PartnerNOC

    Joined:
    Sep 25, 2007
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  2. RobertNikic

    RobertNikic Active Member

    Joined:
    Jun 20, 2008
    Messages:
    31
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Tampa Bay
    I wouldn't say that cPanel changed where the language files are stored for an cPanel account.

    Hmm thats quite an odd issue.
    I would have cPanel support look into this issue for you.
    Click here to visit the cPanel Customer Portal
     
    #2 RobertNikic, Jul 26, 2008
    Last edited: Jul 26, 2008
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
  4. sirdopes

    sirdopes Well-Known Member
    PartnerNOC

    Joined:
    Sep 25, 2007
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Sorry, I was incorrect. The value is stored in ~/.lang
     
  6. sirdopes

    sirdopes Well-Known Member
    PartnerNOC

    Joined:
    Sep 25, 2007
    Messages:
    141
    Likes Received:
    0
    Trophy Points:
    16
    Fixed

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

    Carl
     
  7. dundarr

    dundarr Registered

    Joined:
    Nov 12, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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 .
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page