How to use two language in my website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ashrafy84
Forum Newbie
Posts: 9
Joined: Tue Dec 23, 2008 4:29 am

How to use two language in my website

Post 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
User avatar
DigitalMind
Forum Contributor
Posts: 152
Joined: Mon Sep 27, 2010 2:27 am
Location: Ukraine, Kharkov

Re: How to use two language in my website

Post by DigitalMind »

Use constants or an array with messages.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: How to use two language in my website

Post 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
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply