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.

Default Language Files

Discussion in 'User Experience' started by frankiejr, Nov 16, 2004.

  1. frankiejr

    frankiejr Member

    Joined:
    May 29, 2004
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    I'm assuming the language files that cPanel uses are overwritten upon each upgrade. Is there any way to link to a secondary file instead (when developing a custom theme) so that I can use my own language file? I've thought about doing it through PHP echo tags but would rather do it through cPanel tags if at all possible.

    I don't like the way many things are worded and/or capitalized in the default language file and would like to change it. I'd rather not hard-code the titles directly; I'd like to pull all text from an external file.

    Thanks,
    .frankiejr
     
  2. Donna

    Donna BANNED

    Joined:
    Feb 15, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Toronto, Canada
    cd /usr/local/cpanel/lang
    rm -rf english
    ln -s /path/to/language/filename english

    Note that there is a space between filename and english.

    This will still get overwritten by cpanel but then you can just remake the symlink with a couple of cut and paste commands.

    Heard of some people making a /scripts/postupcp script to do this for them after cpanel updates but haven't tried it yet so not sure if it'll run automatically or you have to manually run it
     
Loading...

Share This Page