The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Quick "Translate This Page" Link Details »» | |||||||||||||||||||||||||
This modification adds a drop down box in the lower right corner of each page directly under the Forum Jump Box that is currently there. When a user selects an option from this box, they'll be forwarded on to a Google translation of the page at hand.
Please note that when viewing the translated version of this page, the user will not be logged in. In the forumjump template, look for: Code:
<br /><br /> Code:
</div> Code:
<strong>Translate This Page<br /> <form action="http://translate.google.com/translate" method="post"> <input type="hidden" name="u" value="http://YOURSITE.COM/$scriptpath" /> <select name="langpair" onchange="this.form.submit();"> <option value="en|de">English to German</option> <option value="en|nl">English to Dutch</option> <option value="en|es">English to Spanish</option> <option value="en|fr">English to French</option> <option value="en|it">English to Italian</option> <option value="en|pt">English to Portuguese</option> <option value="en|ko">English to Korean</option> <option value="en|ja">English to Japanese</option> <option value="en|ar">English to Arabic</option> <option value="de|en">German to English</option> <option value="de|nl">German to Dutch</option> <option value="de|es">German to Spanish</option> <option value="de|fr">German to French</option> <option value="de|it">German to Italian</option> <option value="de|pt">German to Portuguese</option> <option value="de|ko">German to Korean</option> <option value="de|ja">German to Japanese</option> <option value="de|ar">German to Arabic</option> <option value="nl|en">Dutch to English</option> <option value="nl|de">Dutch to German</option> <option value="nl|es">Dutch to Spanish</option> <option value="nl|fr">Dutch to French</option> <option value="nl|it">Dutch to Italian</option> <option value="nl|pt">Dutch to Portuguese</option> <option value="nl|ko">Dutch to Korean</option> <option value="nl|ja">Dutch to Japanese</option> <option value="nl|ar">Dutch to Arabic</option> <option value="es|en">Spanish to English</option> <option value="es|de">Spanish to German</option> <option value="es|nl">Spanish to Dutch</option> <option value="es|fr">Spanish to French</option> <option value="es|it">Spanish to Italian</option> <option value="es|pt">Spanish to Portuguese</option> <option value="es|ko">Spanish to Korean</option> <option value="es|ja">Spanish to Japanese</option> <option value="es|ar">Spanish to Arabic</option> <option value="fr|en">French to English</option> <option value="fr|de">French to German</option> <option value="fr|nl">French to Dutch</option> <option value="fr|es">French to Spanish</option> <option value="fr|it">French to Italian</option> <option value="fr|pt">French to Portuguese</option> <option value="fr|ko">French to Korean</option> <option value="fr|ja">French to Japanese</option> <option value="fr|ar">French to Arabic</option> <option value="it|en">Italian to English</option> <option value="it|de">Italian to German</option> <option value="it|nl">Italian to Dutch</option> <option value="it|es">Italian to Spanish</option> <option value="it|fr">Italian to French</option> <option value="it|pt">Italian to Portuguese</option> <option value="it|ko">Italian to Korean</option> <option value="it|ja">Italian to Japanese</option> <option value="it|ar">Italian to Arabic</option> </select> <input type="hidden" name="hl" value="en" /> <input type="hidden" name="ie" value="UTF-8" /> <input type="hidden" name="oe" value="UTF-8" /> <input type="hidden" name="safe" value="active" /> <input type="hidden" name="prev" value="/language_tools" /> </select>$gobutton </form> Save. Enjoy. Credit goes to oldfan (for his or her post here) that I tweaked to make work better. For a demo of what this looks like go here: http://f800riders.org/forum/forumdisplay.php?f=67 Supporters / CoAuthors Show Your Support
|
Comments |
#12
|
|||
|
|||
Quote:
|
#13
|
|||
|
|||
Thx! Installed...
|
#14
|
||||
|
||||
I dont have the double <br /> code in my template, just one. Where should I put your code at?
Code:
<div class="smallfont" style="text-align:$stylevar[left]; white-space:nowrap"> <form action="forumdisplay.php" method="get"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="daysprune" value="$daysprune" /> <strong>$vbphrase[forum_jump]</strong><br /> <select name="f" onchange="this.form.submit();"> <optgroup label="$vbphrase[site_areas]"> <option value="cp" $frmjmpsel[usercp]>$vbphrase[user_control_panel]</option> <option value="pm" $frmjmpsel[pm]>$vbphrase[private_messages]</option> <option value="subs" $frmjmpsel[subs]>$vbphrase[subscriptions]</option> <option value="wol" $frmjmpsel[wol]>$vbphrase[whos_online]</option> <option value="search" $frmjmpsel[search]>$vbphrase[search_forums]</option> <option value="home" $frmjmpsel[home]>$vbphrase[forums_home]</option> </optgroup> <optgroup label="$vbphrase[forums]"> $jumpforumbits </optgroup> </select>$gobutton </form> </div> |
#15
|
|||
|
|||
install
|
#16
|
|||
|
|||
Warden,
I'd put it in right above the </div> and after the form end. You might need to plop a line break or two in there for it to look right. |
#17
|
|||
|
|||
Click the install button please - don't just post it in the notes.
|
#18
|
|||
|
|||
sleeping , done now.
|
#19
|
|||
|
|||
THANKS VERY MUCH!!!
This was just what I was looking for, surprised so few people have installed this Mark |
#20
|
|||
|
|||
Still logs me out even after adding this link to the Post Referrer Whitelist.
|
#21
|
|||
|
|||
I see from the Google Translate site that Chinese translation is supported, how do i amend the code to have English to Chinese (Simp and Trad) ?
Also would like to move the translate button from the Jump page, to somewhere higher up the page, can anyone sugguest a suitable location and the code ! Much appreicated |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|