Hi,
Could anyone share the good practices to build multi-language PHP website?
Let say, my index.php has 2 languages, when user select english (with his membership settings, for example) the welcome message is in english, else it is in second language like japanese, chinese, etc.
Any recommended techniques?
Can I include, a file, say called language.php, and in this file, I have array of messages in multiple languages, like english, japanses, etc:
$welcome = array ("english" => "welcome", "chinese" =>"xxx xxx xxx");
$goodday = array ( .....)
Hence, I can use this array to populate different languages based on user/member's preference ....
But, is this a good practices? Burden to the server?
Thanks in advance.





Bookmarks