Dynamic Mutilanguage changer

Discussion in 'PHP' started by ag1357, Apr 4, 2012.

  1. #1
    Hello

    I making a website which contain 3 different languages english , spanish, and german

    our clients said he want to convert all website text into 3 different languages when he press those 3 language button when he press english button website turn into english when press into spanish button website converted into spanish language including mysql database record which stored into the database.

    Please help me

    Thanks[​IMG]
     
    ag1357, Apr 4, 2012 IP
  2. ROOFIS

    ROOFIS Well-Known Member

    Messages:
    1,234
    Likes Received:
    30
    Best Answers:
    5
    Trophy Points:
    120
    #2
    ROOFIS, Apr 4, 2012 IP
  3. Basti

    Basti Active Member

    Messages:
    625
    Likes Received:
    6
    Best Answers:
    3
    Trophy Points:
    90
    #3
    So, do you have a base to work on? Simpliest thing would be to make a form for those 3 languages, secure the form, upon selection query the database WHERE language = form selection
    Setup a cookie so the value is not lost on page refresh, page change
    If nothing is selected through the form ( first time visit ) load the default language

    Mysql setup could be: text, language
    where text is the text in the desired language, and language field would be english or german etc etc
    Ofcourse you need the same text in 3 different languages so we can query the right thing
     
    Basti, Apr 11, 2012 IP