Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Usage of LANG and LOCALE account parameters

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

  1. odmink0

    odmink0 Member

    Feb 29, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Reseller Owner

    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

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    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.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice