Page 1 of 1

How to use two language in my website

Posted: Mon Feb 28, 2011 3:02 am
by ashrafy84
Hi Everybody,

I am desinging a website in php which is in english. where i have to include my mother language in the same site in some place. I dont know how to do this. Can any one help me. Is any code is there. Please help me with the code as soon as possible

Re: How to use two language in my website

Posted: Mon Feb 28, 2011 3:30 am
by DigitalMind
Use constants or an array with messages.

Re: How to use two language in my website

Posted: Mon Feb 28, 2011 10:59 am
by AbraCadaver
Yes, for some simple stuff like button, greetings, etc. many people use constants, but if you are wanting to have content in multiple languages you can do something like this: viewtopic.php?f=6&t=113700&p=596913#p596913