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.

Usage of LANG and LOCALE account parameters

Discussion in 'cPanel Developers' started by odmink0, Mar 2, 2012.

  1. odmink0

    odmink0 Member

    Joined:
    Feb 29, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Russia
    cPanel Access Level:
    Reseller Owner
    Hello.

    I'm trying to figure out what LANG and LOCALE parameters in "modifyacct" WHM function mean and how do they affect each other.

    During experiments I discovered that setting LANG also changes LOCALE and vice versa. Does it make sense trying to change both of the parameters? Links to the documentation are also welcome.
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    LOCALE is our newer system (introduced in version 11.25) which handles translating the UI.

    LANG is kinda along for the ride from our legacy system which handled translating the UI.

    That's why they seem to influence one another, it's a bit of backwards compatibility to older scripts that predate the introduction of LOCALE.

    Personally, I would set LOCALE but there's no harm in setting both as long as they're both effectively the same value (e.g. es/spanish-utf8 and en/english-utf8 rather than en/spanish-utf8).


    Note: we will be introducing versioning to our APIs to avoid awkwardness like this :). This way old scripts can use the old version of the APIs well and the newer scripts (like stuff you may be writing) doesn't need to worry about stuff that changed years ago.
     
Loading...

Share This Page