PDA

View Full Version : Forum Display Enhancements - UKBL ~ Easy Google Translator


UKBusinessLive
01-23-2009, 10:00 PM
UKBL ~ Easy Google Translator

Hi Everyone, :)

Made this for a friends forum and thought i'd share it here :D

Just a Simple Google translator which you can add to your forums, displays in a small Dropdown box in the Forum Home and posibit wrapper.

https://vborg.vbsupport.ru/external/2009/01/22.png

Then you can add the dropdown box in the postbit wrapper so that the option to translate is available with every post ;)

https://vborg.vbsupport.ru/external/2009/01/23.png

Just click on a language and within seconds your posts is converted to a language of your choice

https://vborg.vbsupport.ru/external/2009/01/24.png

Your Members will be able to chose from the following,

Arabic
Chinese Simplified
Chinese Traditional
Dutch
French
German
Greek
Italian
Japanese
Korean
Russian
Spanish
Portuguese

There are loads more available, if you want any lanuage in particular, just post here and i'll add it on

Nice, So how do we add it???

1. Download the zip file with the code and instructions

2. Styles & Templates > All Style Options > Edit Template > Forum home template: FORUMHOME

Find:

$navbar

Below add:

<!-- UKBL ~ Easy Translation on forumhome -->

<DIV ALIGN=RIGHT>
<td nowrap style="border-left: 1px solid #dddddd;" align="center"> <select name="translate" style="height:20px; font-size:11px;" onchange="javascript:window.location = 'http://www.google.com/translate_c?hl=en&langpair=en%7C' + this.value + '&u=' + window.location.href;">
<option value="">Translate This Page</option>
<option value="ar">Arabic</option>
<option value="zh-CN">Chinese Simplified</option>
<option value="zh-TW">Chinese Traditional</option>
<option value="nl">Dutch</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="el">Greek</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="pt">Portuguese</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
</select>
</DIV>

<!-- UKBL ~ Easy Translation on forumhome -->



Styles & Templates > All Style Options > Edit Template > Postbit Templates > postbit_wrapper

find

<!-- post #$post[postid] -->

Then below add

<!-- UKBL ~ Easy Translation on postbit_wrapper -->

<DIV ALIGN=CENTER>
<td nowrap style="border-left: 1px solid #dddddd;" align="center"> <select name="translate" style="height:20px; font-size:11px;" onchange="javascript:window.location = 'http://www.google.com/translate_c?hl=en&langpair=en%7C' + this.value + '&u=' + window.location.href;">
<option value="">Translate This Page</option>
<option value="ar">Arabic</option>
<option value="zh-CN">Chinese Simplified</option>
<option value="zh-TW">Chinese Traditional</option>
<option value="nl">Dutch</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="el">Greek</option>
<option value="it">Italian</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="pt">Portuguese</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
</select>
</DIV>

<!-- UKBL ~ Easy Translation on postbit_wrapper -->

Thats it, So easy and a great treat for your members ;)

As always Please Click installed if you use this :rolleyes:

************************** UPDATED LANGUAGE PACK *********************

Here is an updated language pack, just replace your existing ones with the ones below

<option value="ar">Arabic</option>
<option value="bg">Bulgarian</option>
<option value="zh-CN">Chinese Simplified</option>
<option value="zh-TW">Chinese Traditional</option>
<option value="hr">Croatian</option>
<option value="cs">Czech</option>
<option value="da">Danish </option>
<option value="nl">Dutch</option>
<option value="en">English</option>
<option value="fi">Finnish</option>
<option value="ph">Filipino</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="il">Hebrew</option>
<option value="el">Greek</option>
<option value="it">Italian</option>
<option value="id">Indonesian</option>
<option value="lv">Latvian</option>
<option value="lt">Lithuanian</option>
<option value="hi">Hindi</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="no">Norwegian</option>
<option value="pl">Polish</option>
<option value="pt">Portuguese</option>
<option value="ro">Romanian</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
<option value="sv">Swedish</option>
<option value="rs">Serbian</option>
<option value="sk">Slovak</option>
<option value="si">Slovenian</option>
<option value="ua">Ukrainian</option>
<option value="vn">Vietnamese</option>



Feel Free to add or delete any you don't want, I'll add more as i get them :rolleyes:

Please Click Installed for unlimited support ;)

UKBusinessLive
01-24-2009, 04:04 PM
:D Reserved ;)

Cybershaolin
01-25-2009, 02:46 AM
Yep, as I'm french, i would like the english option to be added. lol

UKBusinessLive
01-25-2009, 08:14 AM
Yep, as I'm french, i would like the english option to be added. lol

You can add the English option here

<option value="en>English</option>

Just add it to the list of options

Have fun :D

UKBusinessLive
01-25-2009, 10:19 AM
************************** UPDATED LANGUAGE PACK *********************

Here is an updated language pack, just replace your existing ones with the ones below

<option value="ar">Arabic</option>
<option value="bg">Bulgarian</option>
<option value="zh-CN">Chinese Simplified</option>
<option value="zh-TW">Chinese Traditional</option>
<option value="hr">Croatian</option>
<option value="cs">Cczech</option>
<option value="da">Danish </option>
<option value="nl">Dutch</option>
<option value="en">English</option>
<option value="fi">Finnish</option>
<option value="ph">Filipino</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="il">Hebrew</option>
<option value="el">Greek</option>
<option value="it">Italian</option>
<option value="id">Indonesian</option>
<option value="lv">Latvian</option>
<option value="lt">Lithuanian</option>
<option value="hi">Hindi</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="no">Norwegian</option>
<option value="pl">Polish</option>
<option value="pt">Portuguese</option>
<option value="ro">Romanian</option>
<option value="ru">Russian</option>
<option value="es">Spanish</option>
<option value="sv">Swedish</option>
<option value="rs">Serbian</option>
<option value="sk">Slovak</option>
<option value="si">Slovenian</option>
<option value="ua">Ukrainian</option>
<option value="vn">Vietnamese</option>



Feel Free to add or delete any you don't want, I'll add more as i get them :rolleyes:

Please Click Installed for unlimited support ;)

adhmwagde
01-25-2009, 03:41 PM
thanks very much ... installed :)

UKBusinessLive
01-26-2009, 05:04 AM
Thanks :D

BeFit4Free
06-29-2009, 06:01 AM
Hey guys,
I searched the 10 most popular languages in America and added them on my forum in the order of their popularity.

You could also arrange them alphabetically.

I also modified the code a little and added it to my Navbar so it fit really nicely.

Check it out: www.BeFit4Free.net (http://www.BeFit4Free.net)

Meestor_X
08-13-2009, 04:45 PM
Hey guys,
I searched the 10 most popular languages in America and added them on my forum in the order of their popularity.

You could also arrange them alphabetically.

I also modified the code a little and added it to my Navbar so it fit really nicely.

Check it out: www.BeFit4Free.net (http://www.BeFit4Free.net)
I'd like to see that code. I can't find the selector on your page though... I don't see any translation drop-down on your site at all!