Hire us to design your site.
Jul
12
2011

Translate to multiple languages

I had get this question a few times now I think it´s better I tell you about it here instead :)
 
Example:
you have something like this code:
and you will translate Welcome and You have 1 new message!

<br><font size=2>&nbsp;&nbsp;&nbsp;Welcome {session.username}.
<!– IF {session.newmessages} #==”1″ –>
You have 1 new message!
 
instead of words you must insert new lang strings code instead of:
( Welcome, You have 1 new message! )

<br><font size=2>&nbsp;&nbsp;&nbsp;{lang:”custom”,”total_welcome”} {session.username}.
<!– IF {session.newmessages} #==”1″ –>
{lang:”custom”,”total_newmessages”}
 
open your lang.custom.php (/includes/languages/)
now you can make new lang strings so you can translate it.

“total_welcome” =>
“welcome”,
 
“total_newmessages” =>
“newmessages”,
 
translate the word welcome and newmessages.
( and you must do this for all your languages !
 
I have total_ in this example but of course you can change the name to you own ;)

About the Author: gugu

Hey ... I´m the owner of this site ;) If you need help customize your vldpersonals site. Please ask me and I will try to help you. Enjoy reading !

Comments are closed.