I've developed a php web-app recently in english language. Now, I want to add support to other languages. I've googled & found some results like using
.ini files etc. This is good for static websites.
But, the thing here is I want to display some data from mysql database in the middle of the message.
For example, In english it is
<?php $user = $row['username']; $balance = $row['balance']; echo "Hello $user, you've $balance credits in your account"; ?>
and in hindi,
<?php $user = $row['username']; $balance = $row['balance']; echo "Namaste $user, Aapke paas $balance credits hai"; ?>
Now, how do I translate like this. Thanks for any help.