Topic: How to translate your vldPersonal site into different Languages
You and your site members can translate your vldPersonals site into 13 different languages with a single click of the mouse. Just follow the simple steps below to set-up your translate interface.
Step 1
Download the language pack you want from the Downloads area.
Unzip the language pack.
Upload the language pack folder to your 'includes/languages' folder.
Note: the language pack folder is the folder with language name only.
Step 2
Activate your new language.
In the control panel:
Settings----»Languages
Select the “un-installed” icon to install your new language.
Step 3
Set your site default language
in the control panel:
Settings---» Select group---» Localizations
System language---- »select your default site Language
Override members language [No]
[submit]
Step 4
Now that you've installed the language pack, set your site default language and allowed your members to change the site language, you need a front-end interface (switch) to translate your site to the new language.
There are many ways you to allow members to translate your site.
Create a new link and place it in your header.tpl or wherever you want the link to appear.
Here are 3 examples of translation interface
Example1
for word links:
<a href="{virtual_path}?language=english">English</a> |
<a href="{virtual_path}?language=spanish">Espanol</a>Example 2
for image links:
<a href="{virtual_path}?language=english">
<img border="0" src="{virtual_path}templates/your_template/media/flag1.gif" width="20" height="20"></a>
<a href="{virtual_path}?language=spanish">
<img border="0" src="{virtual_path}templates/your_template/media/flag.2" width="20" height="20"></a>***Please Note***
Where flag1.gif and flag2.gif are flag images uploaded to your 'templates/your_template/media' folder
Or you may use the flag images in your 'media/flags' folder
Example 3
for drop-down menu
<form name="jump">
<select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
<option value="{virtual_path}">Translate</option>
<option value="{virtual_path}?language=english">English</option>
<option value="{virtual_path}?language=spanish">Espanol</option>
</select>
</form>Now your members can translate your site with just one mouse click.
Last edited by seeme101 (2010-08-25 09:09:17)