Ok! This tutorial is strictly targeted towards web developers, who are looking for ways to convey or show his/her web page(s) in more than one language. Here is one smart way of doing it.
I’ve made it very easy for you; I’ll give you the source-code and tell you what to do to get it working. Still have a problem? Leave a comment! I’ll help you get through.
Steps to follow
1) Create a .php file and name it “index”
then copy and paste this code inside index.php
2) Create a folder (in the same location where index.php is) and name it “choose”
then create an eng.php and a sin.php file inside “choose”
3) Paste this code inside eng.php :
$intro = “Hello!”;
$name = “My name is Ruzeen.”;
and paste this code inside sin.php :
$intro = “ආයුබෝවන!”;
$name = “මගේ නම රුසීන්.”;
(substitute the text according to your needs)
That’s it! You’re done.
You can easily change languages (by going through the code) to fulfill your needs.
– thanks for your comments