help for language translation.

Discussion in 'PHP' started by upendrau, Sep 4, 2010.

  1. #1
    Hi,

    I am developing a website that need a bilingual translation that is English and Hindi. How can I achieve this. I don't want to use google translation.

    Is there any script or something?

    Please help me out.
    Thanks in advance
     
    upendrau, Sep 4, 2010 IP
  2. Rainulf

    Rainulf Active Member

    Messages:
    373
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    85
    #2
    lol you can take results from google translation ;)
     
    Rainulf, Sep 4, 2010 IP
  3. upendrau

    upendrau Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks Rainulf,

    But my client don't want google translation. he wants to choose language from dropdown.
    and simply translate the full page
     
    upendrau, Sep 4, 2010 IP
  4. TheWiseGuy

    TheWiseGuy Member

    Messages:
    113
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #4
    you can use http://php.net/manual/en/book.gettext.php and poedit to edit language files
    this would be just for static parts of the website.

    then you can have a database table where you specify the language for every content item, so if the current language selected is english you retrieve the english content, else the other language.

    This way you can add as many languages as you want and it doesn't get more complicated at all then when you have just two
     
    TheWiseGuy, Sep 4, 2010 IP