multi language

Discussion in 'PHP' started by fairuz.ismail, Apr 14, 2008.

  1. #1
    Hi,

    I want to build a system with multi language support. So can you guys list down the possible solutions to make a multi language system in PHP?

    Thanks in advance
     
    fairuz.ismail, Apr 14, 2008 IP
  2. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #2
    I suggest put all phrases in an array and write in a php file.
    Include file with necessary array.
     
    AsHinE, Apr 14, 2008 IP
  3. saurabhj

    saurabhj Banned

    Messages:
    3,459
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #3
    saurabhj, Apr 14, 2008 IP
  4. fairuz.ismail

    fairuz.ismail Peon

    Messages:
    232
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    do you mean i should make a different lang file for diff. language? and instead of hard coded the text, I make them constants associate with the language file?
     
    fairuz.ismail, Apr 14, 2008 IP
  5. fairuz.ismail

    fairuz.ismail Peon

    Messages:
    232
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    fairuz.ismail, Apr 14, 2008 IP