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.

Traslating Cpanel..

Discussion in 'User Experience' started by adapter, Mar 22, 2004.

  1. adapter

    adapter Well-Known Member
    PartnerNOC

    Joined:
    Sep 17, 2003
    Messages:
    391
    Likes Received:
    0
    Trophy Points:
    16
    Hi

    i want traslate Cpanel into my language but what happend when Cpanel will upgrade? the new text add will report with a note in the file or what?

    what is the best way to trasalte?

    thx
     
  2. fragtech

    fragtech Registered

    Joined:
    Apr 7, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Make a language file of some sort. I'm currently developing a new skin for my customers with language support. So far I've got English, Gaelic and Dutch, but I've got someone working on German and French. The way I'm making it is in a language file, e.g

    //english.lang file
    $var1 = "hello";
    $var2 = "A big fat dog";

    //french.lang file
    $var1 = "Bonjour";
    $var2 = "Un grand gros chien"

    if [language = french] then [include french.lang]
    else [include english.lang]

    In your cpanel skin, you would just put in the variables instead of text.

    for example if you wanted to say hello in whatever language the user has selected, u would do something like...

    echo $var1;

    If this seems like too much hard work then I think there is allready a skin with language support. I think its called RVskin.
     
    #2 fragtech, Mar 24, 2004
    Last edited: Mar 24, 2004
  3. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    You may use the <cpanel printlang="key"> tags - the keys and the corresponding messages are stored in the different language files in /usr/local/cpanel/lang/ or /path/to/theme/lang/
     
  4. JohnL

    JohnL Member

    Joined:
    Apr 10, 2003
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Hi !

    Would you be willing to share your DUTCH language file with me? I can offer (in case you don't have any of these yet): Spanish, French, German, Catalan, Turkish, Romanian. I can be contacted at support@server-1.com

    John
     
  5. tcaetano

    tcaetano Active Member

    Joined:
    May 15, 2003
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Faro > Portugal
    If anyone is interested I can translate to portuguese a skin...

    Just want for return the skin! :)
     
  6. kris1351

    kris1351 Well-Known Member

    Joined:
    Apr 18, 2003
    Messages:
    963
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Lewisville, Tx
    There are several skin makers out there with multiple translations already. You can check out www.cpanelthemes.com and Xcontroller is in 5 different languages I believe.
     
Loading...

Share This Page