1

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)

Not only am I a Staff member,  I'm also a Client

2

Re: How to translate your vldPersonal site into different Languages

Brilliant!

3

Re: How to translate your vldPersonal site into different Languages

Great job Seeme!

4

Re: How to translate your vldPersonal site into different Languages

Greetings,
I've set up my language options with the info above (Thanks).
My only issue is that when on any page other than the homepage, and User changes Language, They are sent back to the homepage (the language does change) but how to change Language and stay on same page. Id really appreciate the help.
Thanks

5

Re: How to translate your vldPersonal site into different Languages

will need to edit index.php and add code for browser language detection and setting the language session based on their browser language

6

Re: How to translate your vldPersonal site into different Languages

Hi can some one please help me here. i am trying to add languages into my website but i am having a hard time with the path. here is what i have added into my header.tpl

<a href="includes/languages/spanish/lang.core.php?language=english">
<img border="0" src="templates/nightlife/media/es.png" width="16" height="11"></img></a>

Please can some one tell me what am i doing wrong?
i believe is something to do with the path.

thanks for your time

Last edited by Muhammad (2010-04-28 09:22:50)

7

Re: How to translate your vldPersonal site into different Languages

Should be index.php?language=english

Developer

8

Re: How to translate your vldPersonal site into different Languages

Hi
   Does anyone know why im only getting Flags on home page but none on other pages?

9

Re: How to translate your vldPersonal site into different Languages

I think that you put your flags in homepage.tpl, try to put  it in header, so it will show in every page.

Mcp, Mcsa, Mcse, A+, Server+, Linux CP...

10

Re: How to translate your vldPersonal site into different Languages

Thanks, Emir.
                 I'll try that.

11

Re: How to translate your vldPersonal site into different Languages

Hi Emir

I have put the languages code on the header.tpl i am still getting the same problem...


when i view others pages i only see the image link but not the flags images. also when i click on the link it open another page with a error saying "oops this page has broken link"?

by the way i have placed the languages code at the buttom of the page on the header.tpl.


thank you for trying to help me out buddy.

12

Re: How to translate your vldPersonal site into different Languages

I can not seem to figure this out. I was able to get it to show on the menu but all it translated was the menu not the entire site:

Here is my code header code. I would like the drop down be either under the search feature on the side bar or in the top menu area:

*******

13

Re: How to translate your vldPersonal site into different Languages

Don't post entire code of the file next time. More often than not posting a small code snippet is enough.

Developer

14

Re: How to translate your vldPersonal site into different Languages

That does not help me. I still am at a loss

15

Re: How to translate your vldPersonal site into different Languages

Thank's for share! I'm a new in  VLd from today and this was very important for me.

I put this on header.tpl after that:

<div id="header_wrap">
            <div id="header">
                <h1><span>{settings.app_title}</span></h1>
                <div class="banner">{banners:group="header"}</div>
                <div class="clear"></div>
            </div>
        </div>
        <div class="clear"></div>

and put the code for flags on a new <div align="center"> that i created and word fine.

16

Re: How to translate your vldPersonal site into different Languages

Hi all,
Does anyone know how to translate your VLD site into a different language other than the 11 ones that came with the license purchase? Ex. Chinese or Japanese.
What I mean is to have a dropdown menu at the top allowing non-English speaking clients to chose the language they prefer, either Chinese or Japanese.

Since we're planning to build a multilingual dating website, this feature is very important to us.

Thanks.

17

Re: How to translate your vldPersonal site into different Languages

Create a copy of any of the available language packs and update 'lang.info.php' file inside it to reflect the new name. The rest is the same as in the first post above.

Developer

18

Re: How to translate your vldPersonal site into different Languages

how to enable language here?

function langChanger() {
        var imgBox = new Facebox({
            url: '<a href="http://vseti.md/?language=english">English</a>',
            ajaxDelay: 800,
            title: 'Выберите ваш язык',
            cancelValue: 'Закрыть'
        });
        imgBox.show();
    }

19

Re: How to translate your vldPersonal site into different Languages

vld developpers tip: non existing translations should show the existing englsih text instead !
now you get: Unkown field

20

Re: How to translate your vldPersonal site into different Languages

Hi,

I already lost track at step one ...

Can anyone please tell me where the 'includes/languages' folder is?

I really have no idea, please someone help me out big_smile

Upload the language pack folder to your 'includes/languages' folder.

21

Re: How to translate your vldPersonal site into different Languages

/public_html/includes/languages/

Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals   Swedish Dating on Love2u.se   VldCrowd:s Community

22

Re: How to translate your vldPersonal site into different Languages

Oke thank you,

But I'm the biggest noob in the world.

Can you please tell me where the /public_html/includes/languages/ is ???

Do I have to go to my Control Panel ?

Than what ?

Could you please give the exact steps where to find it ?

Please !?

23

Re: How to translate your vldPersonal site into different Languages

Can anyone Please help me out...

24

Re: How to translate your vldPersonal site into different Languages

you must doing it on your webhosting (ftp) or cpanel ...
you can´t doing it from your control panel ...

then you login on your webhost you will see
/public_html/includes/languages/
upload your new languages file to this folder ...

Give the world the best you have, and the best will come to you.
Tutorials and Mods for VldPersonals   Swedish Dating on Love2u.se   VldCrowd:s Community

25

Re: How to translate your vldPersonal site into different Languages

works like a charm, thanks!