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, 03:59 PM
:o Reserved ;)

javolin14
01-24-2009, 06:47 PM
Haven't tried it yet, but looks very interesting and functional. Nice work.

UKBusinessLive
01-24-2009, 08:29 PM
Haven't tried it yet, but looks very interesting and functional. Nice work.

Thanks, Very easy to install and add extra languages too ;)

UKBusinessLive
01-25-2009, 10:18 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 ;)Please Click Installed for unlimited support ;)

Forgott3n
01-27-2009, 11:57 PM
Couple of bugs:

- Vietnamese doesn't work because "vn" needs to be "vi"
- Ukrainian doesn't work because "ua" needs to be "uk"

Those are the ones I found.

UKBusinessLive
01-28-2009, 05:14 AM
Couple of bugs:

- Vietnamese doesn't work because "vn" needs to be "vi"
- Ukrainian doesn't work because "ua" needs to be "uk"

Those are the ones I found.

Thanks buddy, Will edit that later when i get back from work :up: