The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
UKBL ~ Easy Google Translator Details »» | |||||||||||||||||||||||||||||||||
UKBL ~ Easy Google Translator Hi Everyone, Made this for a friends forum and thought i'd share it here 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. Then you can add the dropdown box in the postbit wrapper so that the option to translate is available with every post Just click on a language and within seconds your posts is converted to a language of your choice 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: Code:
$navbar Code:
<!-- 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 --> find Code:
<!-- post #$post[postid] --> Code:
<!-- 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 --> As always Please Click installed if you use this ************************** UPDATED LANGUAGE PACK ********************* Here is an updated language pack, just replace your existing ones with the ones below Code:
<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> Please Click Installed for unlimited support Download Now
Screenshots
Show Your Support
|
Comments |
#62
|
|||
|
|||
Is there anyway to open the translated page in a pop up or new window?
|
#63
|
|||
|
|||
Quote:
Unfortunately not at the moment but i will look into it for you see if we can make it so |
#64
|
|||
|
|||
UKBusinessLive why dont translate ....?
|
#65
|
|||
|
|||
why don't translate what ???
|
#66
|
|||
|
|||
Look...
|
#67
|
|||
|
|||
Just a little tip, but if you want it to be another checkbox next to where you select styles, you can do this:
Find Code:
<if condition="$show['quickchooser']"> <td class="tfoot"> <select name="styleid" onchange="switch_id(this, 'style')"> <optgroup label="$vbphrase[quick_style_chooser]"> $quickchooserbits </optgroup> </select> </td> </if> Code:
<!-- UKBL ~ Easy Translation on postbit_wrapper --> <td class="tfoot"> <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="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> </select> <!-- UKBL ~ Easy Translation on postbit_wrapper --> |
#68
|
|||
|
|||
hello
please update google for persian lang |
#69
|
||||
|
||||
Great idea installed and tested but something that I find a problem. What I find to be a problem is that it logs you off the forum and their is a google frame on top of the forum. Nothing major but is their a way to fix that?
|
#70
|
|||
|
|||
yea i have the same issue with the login, it will log me out before it translates the page. then if i log back in im back to the normal language.
|
#71
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|