Jul
12
2011
12
2011
Translate to multiple languages
An article by VldMods
Comments Off on 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> 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! )
<!– 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> {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 ;)
“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 ;)
Tags: translate
Featured Posts
-
Videos Fun & Friends
-
Change Join Now logo (multilanguages)
-
Include a Browser Detection
-
60 Mods to Make Your Site Better
-
Marketplace
-
Support/Help for VldPersonals Owner
-
Bootstrap 3.0 Theme for VldPersonals
-
Why we need a Bootstrap theme for VldPersonals. Campaign Now 30% OFF
-
Register Step by Step Mod
-
Auto update copyright date !
-
Newsletter Mail System for vldPersonals
-
Answer & Question
-
New templates on luvpoint for vld.2.7
-
Display a register form at the front page.
-
Forum
-
Tool Tip Registration Mod
-
Blink icon then get new messages
-
Search Engine Optimization
-
Our Community