Translate to multiple languages.

Here we can make tutorials ... how to ...
it will make it more easy to start with our new sites.

Translate to multiple languages.

Postby admin » September 17th, 2010, 11:41 pm

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!
Code: Select all
<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! )
Code: Select all
<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.
Code: Select all
"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 ;)
//gugu
Admin VldMods Forum
User avatar
admin
Site Admin
 
Posts: 105
Joined: 13 Aug 2010
Location: sweden
Knowledge: 6
Vld Version: 2.7
Vld Site: http://www.love2u.se

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest

cron