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.

Create account status messages

Discussion in 'cPanel Developers' started by tvovk, Jun 7, 2010.

  1. tvovk

    tvovk Registered

    Joined:
    Dec 17, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I was wondering if there is a list of all status messages returned by createacct function since I'd like to translate those messages before the output.

    I get those messages using the cPanel/WHM API

    Thanks in advance
     
    #1 tvovk, Jun 7, 2010
    Last edited: Jun 7, 2010
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi tvovk,

    Unfortunately, we don't have an exhaustive list of status messages. And even if we did, they would all contain variables that, outside our code, would be out of context and virtually useless.

    Talking with a developer earlier today, we do hope to localize the API eventually. However, there's no ETA for such a change.

    If you're using the XML/JSON API, then it should be possible to parse it on the fly with a translation engine and get suitable results. I'd suggest using a translation API like google's: Google AJAX Language API - Google Code .

    Regards,
    -David
     
  3. tvovk

    tvovk Registered

    Joined:
    Dec 17, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for your response cPanelDavidN.

    I'll try with google translation API but since the translations from English to Slovenian are usualy bad I''ll probably stay with the English messages. :)

    Or I'll just translate the most usual messages.

    Thanks and best regards!
     
    #3 tvovk, Jun 9, 2010
    Last edited: Jun 9, 2010
Loading...

Share This Page