PDA

View Full Version : Mini Mods - Translate every page on the fly


doa24uk
06-02-2009, 10:00 PM
NOTE: This MOD will work on ANY version of vBulletin - 3.4,3.5,3.6,3.7,3.8 etc...


This will give you a Google translate box which will allow users to translate your pages on the fly into their own language!


Step 1


Go here (http://translate.google.com/translate_tools) and choose your forum native language, copy the code given in the box.

Step 2


In FORUMHOME FIND

<!-- end today's birthdays -->
</if>

INSERT AFTER

{Code copied from Step 1}


In FORUMDISPLAY FIND

<!-- ############## END THREADS LIST ############## -->
</if>


INSERT AFTER

{Code copied from Step 1}


In SHOWTHREAD FIND

<!-- / social bookmarking links -->
</if>

INSERT AFTER

{Code copied from Step 1}


In USERCP FIND

$template_hook[usercp_main_pos6]


INSERT AFTER

{Code copied from Step 1}

TheLastSuperman
06-03-2009, 11:47 AM
Nice attempt... others out there even one by UKBL :D

so everyone, pick your poison i.e. this one or others all seem good. Ohh and on the fly is kind of misleading I assumed everytime you clicked a link it would already bring it up translated... silly me but you see what I mean :p

relaxiha
06-28-2009, 07:58 PM
thank you ! work fine

saadessa
06-29-2009, 03:55 PM
thank you ! work fine

ricardoNJ
10-21-2009, 02:00 PM
uninstalled.
It is a bit annoying that it always appears at the top, a band wanting to translate the page. Anyway: thanks!

Simon Lloyd
11-20-2009, 03:16 PM
I've marked this installed however i only used the suggestion of adding the translate tool, rather than make all those template edits you could simply include it in your header or, as i have done make it floating :)

justasiam
03-23-2010, 11:50 PM
Is there a new set of instructions available for v4.xx of vBulletin? Also of vbCMS and vbBlog.

inciarco
03-24-2010, 01:40 AM
Google's Translator Causes Errors on Internet Explorer 6, so You Have to Create a Conditional to Exclude IE6 Browsers to Use the Translator, (the Users will get an Error Page if Not).

I Use the Following Code:

<if condition="(is_browser('firefox') or is_browser('chrome') or is_browser('ie', '8'))">

GOOGLE_TRANSLATOR_CODE

</if>

I Haven't Tested Yet if the Translator Works Fine on Internet Explorer 7, that's why I haven't included yet a:

or is_browser('ie', '7')

Also, the Chrome Browser should be Included with the Following Instructions:

Add Google Chrome to the is_browser() function (https://vborg.vbsupport.ru/showthread.php?t=189991)

Another Simpler Code Might be the Following, to Exclude the Internet Explorer 6 Browser, and use the Translator on Every Other Browser and Internet Explorer Version:

<if condition="(!is_browser('ie', '6'))">

GOOGLE_TRANSLATOR_CODE

</if>


You Can Use the Google Translator Tool Code on the Header Template and it'll be Used on All the Board's Pages. ;)

My Best Regards.

:)