Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
DJ's Translate a Thread in a Google Pop-Up Window Details »»
DJ's Translate a Thread in a Google Pop-Up Window
Version: 3.00, by Digital Jedi Digital Jedi is offline
Developer Last Online: Sep 2023 Show Printable Version Email this Page

Category: Show Thread Enhancements - Version: 3.7.x Rating:
Released: 08-18-2008 Last Update: 03-18-2009 Installs: 35
Supported Template Edits
Additional Files  

This template modifications adds a drop-down menu to all your threads which allows users to translate that thread in a new window using Google's Language Tools.

========================================
NOTE: As this is a merely a template edit, vBulletin version isn't really going to be an issue.
========================================

When I first released this for vB 3.6, there seemed to be some confusion as to how this works. Let me clear up any confusion from the start. This is just a simple template modification that redirects you to a translation service from Google.com. It's some links and some pictures designed to help international users communicate more easily. It does not auto-detect what language your forum is in, nor is it a way to browse and post in your forum in another language. It's simply what is described: A way to translate a thread from one base language to another set language. And it also can only support the languages that Google supports, which are the ones listed. Hopefully I've redesigned this mod to be more clear about how it works.


NOTE: In order for Google to translate your threads, they must be able to crawl your forum pages. So Guests must be able to read your forum in order for this mod to work.


Updates
08-19-08 (Updated to include the new languages from Google's Language Tools.


Upgrades
For those upgrading from the vB 3.6 version, click here.


Screenshot



Supported Languages
العربية (Arabic)
Български (Bulgarian)
中国 (Chinese - Simplified)
中國 (Chinese - Traditional)
Hrvatski (Croatian)
Česky (Czech)
Dansk (Danish)
Nederlands (Dutch)
English (This is merely a direct link to the Google Translator)
Suomi (Finnish)
Fran?ais (French)
Ελληνική (Greek)
Deutsch (German)
हिन्दी (Hindi)
Italiano (Italian)
日本語 (Japanese)
한국어 (Korean)
Norsk (Norwegian)
Polski (Polish)
Portugu?s (Portuguese)
Rom?nă (Romanian)
Русский (Russian)
Espa?ol (Spanish)
Svenska (Swedish)


Live Demo
Look for the "Translate" drop-down menu beside the "Display Modes" drop-down.


Installation
Installation is simple. To add this to your forum requires two edits to your SHOWTHREAD template.

Step 1.
To access your SHOWTHREAD template, go to Admin CP >>> Styles & Templates >>> Style Manager >>> "Expand one of your styles" >>> Showthread Templates >>> SHOWTHREAD and look for:

Code:
 
 <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("displaymodes"); </script></if>
 </td>
 </if>
Below it add:

Code:
 
        <td class="vbmenu_control" id="languagemenu" nowrap="nowrap">
          <a href="$show[nojs_link]#goto_languagemenu">Translate</a>
        <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("languagemenu"); </script></if>
    </td>
Step 2. (The following step will add the "English to..." translation links only. For those that want additional language options, see Post 2 of this thread.)
Next find:

Code:
    
<script type="text/javascript">
    <!--
    vB_AJAX_ThreadRate_Init('showthread_threadrate_form');
    var threadid = $threadinfo[threadid];
    //-->
    </script>
</if>
Below it add:

Code:
<!-- LANGUAGE TRANSLATOR MENU-->
 
<div class="vbmenu_popup" id="languagemenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">English to...</td></tr>
 
<!-- Arabic -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ar&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/ae.gif" alt="Arabic" width="15" height="10" border="0" /> <span title="Arabic">العربية</span></a></td></tr>
 
<!-- Bulgarian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=bg&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/bg.gif" alt="Bulgarian" width="15" height="10" border="0" /> <span title="Bulgarian">Български</span></a></td></tr>
 
<!-- Chinese (Simplified) -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=zh-CN&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/cn.gif" alt="Chinese (Simplified)" width="15" height="10" border="0" /> <span title="Chinese (Simplified)">中国</span></a></td></tr>
 
<!-- Chinese (Traditional) -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=zh-TW&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/tw.gif" alt="Chinese (Traditional)" width="15" height="10" border="0" /> <span title="Chinese (Traditional)">中國</span></a></td></tr>
 
<!-- Croatian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=hr&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/hr.gif" alt="Croatian" width="15" height="10" border="0" /> <span title="Croatian">Hrvatski</span></a></td></tr>
 
<!-- Czech -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=cs&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/cz.gif" alt="Czech" width="15" height="10" border="0" /> <span title="Czech">Česky</span></a></td></tr>
 
<!-- Danish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=da&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/dk.gif" alt="Danish" width="15" height="10" border="0" /> <span title="Danish">Dansk</span></a></td></tr>
 
<!-- Dutch -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=nl&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/nl.gif" alt="Dutch" width="15" height="10" border="0" /> <span title="Dutch">Nederlands</span></a></td></tr>
 
<!-- English -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://www.google.com/language_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/us.gif" alt="Open Google Translator" width="15" height="10" border="0" /> <span title="Open Google Translator">English</span></a></td></tr>
 
<!-- Finnish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=fi&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/fi.gif" alt="Finnish" width="15" height="10" border="0" /> <span title="Finnish">Suomi</span></a></td></tr>
 
<!-- French -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=fr&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/fr.gif" alt="French" width="15" height="10" border="0" /> <span title="French">Fran?ais</span></a></td></tr>
 
<!-- German -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=de&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/de.gif" alt="German" width="15" height="10" border="0" /> <span title="German">Deutsch</span></a></td></tr>
 
<!-- Greek -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=el&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/gr.gif" alt="Greek" width="15" height="10" border="0" /> <span title="Greek">Ελληνική</span></a></td></tr>
 
<!-- Hindi -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=hi&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/in.gif" alt="Hindi" width="15" height="10" border="0" /> <span title="Hindi">हिन्दी</span></a></td></tr>
 
<!-- Italian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=it&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/it.gif" alt="Italian" width="15" height="10" border="0" /> <span title="Italian">Italiano</span></a></td></tr>
 
<!-- Japanese -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ja&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/jp.gif" alt="Japanese" width="15" height="10" border="0" /> <span title="Japanese">日本語</span></a></td></tr>
 
<!-- Korean -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ko&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/kr.gif" alt="Korean" width="15" height="10" border="0" /> <span title="Korean">한국어</span></a></td></tr>
 
<!-- Norwegian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=no&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/no.gif" alt="Norwegian" width="15" height="10" border="0" /> <span title="Norwegian">Norsk</span></a></td></tr>
 
<!-- Polish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=pl&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/pl.gif" alt="Polish" width="15" height="10" border="0" /> <span title="Polish">Polski</span></a></td></tr>
 
<!-- Portuguese -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=pt&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/pt.gif" alt="Portuguese" width="15" height="10" border="0" /> <span title="Portuguese">Portugu?s</span></a></td></tr>
 
<!-- Romanian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ro&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/ro.gif" alt="Romanian" width="15" height="10" border="0" /> <span title="Romanian">Rom?nă</span></a></td></tr>
 
<!-- Russian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ru&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/ru.gif" alt="Russian" width="15" height="10" border="0" /> <span title="Russian">Русский</span></a></td></tr>
 
<!-- Spanish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=es&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/es.gif" alt="Spanish" width="15" height="10" border="0" /> <span title="Spanish">Espa?ol</span></a></td></tr> 
 
<!-- Swedish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=sv&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/se.gif" alt="Swedish" width="15" height="10" border="0" /> <span title="Swedish">Svenska</span></a></td></tr>
 
</table></div>
 
<!-- / LANGUAGE TRANSLATOR MENU -->
Step 3.
Next thing to do is upload the flag images (in attached zip file) to the buttons folder in your images directory. Make sure you upload them to the right one. For some forums, this might simply be images/buttons/. But if your using a custom skin, this might be in the folder holding your style (skin) images, such as [stylename]/buttons/. It will need to be in that directory for each skin you make the template changes to.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 08-20-2008, 12:03 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To all the users of my 2.00 modification, please refer to these instructions in order to upgrade. Upgrading is even easier then before.

UPGRADE INSTRUCTIONS

To access your SHOWTHREAD template, go to your Admin CP >>> Styles & Templates >>> Style Manager >>> [Expand Your Style] >>> Show Thread Templates >>> SHOWTHREAD.

STEP 1.
Simply search for this block of code in your SHOWTHREAD template:

Code:
<td class="vbmenu_control" id="languagemenu" nowrap="nowrap">
          <a href="$show[nojs_link]#goto_languagemenu">Language</a>
        <if condition="$show['popups']"><script type="text/javascript"> vbmenu_register("languagemenu"); </script></if>
    </td>
Change the one instance of the word Language to Translate.


STEP 2.
Look for everything starting with this line
Code:
<!-- Language Translator Menu -->
And ending with this line:
Code:
<!--/ Language Translator Menu -->
And replace all of it with this:
Code:
<!-- LANGUAGE TRANSLATOR MENU-->
 
<div class="vbmenu_popup" id="languagemenu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">English to...</td></tr>
 
<!-- Arabic -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ar&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/ae.gif" alt="Arabic" width="15" height="10" border="0" /> <span title="Arabic">العربية</span></a></td></tr>
 
<!-- Bulgarian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=bg&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/bg.gif" alt="Bulgarian" width="15" height="10" border="0" /> <span title="Bulgarian">Български</span></a></td></tr>
 
<!-- Chinese (Simplified) -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=zh-CN&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/cn.gif" alt="Chinese (Simplified)" width="15" height="10" border="0" /> <span title="Chinese (Simplified)">中国</span></a></td></tr>
 
<!-- Chinese (Traditional) -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=zh-TW&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/tw.gif" alt="Chinese (Traditional)" width="15" height="10" border="0" /> <span title="Chinese (Traditional)">中國</span></a></td></tr>
 
<!-- Croatian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=hr&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/hr.gif" alt="Croatian" width="15" height="10" border="0" /> <span title="Croatian">Hrvatski</span></a></td></tr>
 
<!-- Czech -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=cs&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/cz.gif" alt="Czech" width="15" height="10" border="0" /> <span title="Czech">Česky</span></a></td></tr>
 
<!-- Danish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=da&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/dk.gif" alt="Danish" width="15" height="10" border="0" /> <span title="Danish">Dansk</span></a></td></tr>
 
<!-- Dutch -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=nl&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/nl.gif" alt="Dutch" width="15" height="10" border="0" /> <span title="Dutch">Nederlands</span></a></td></tr>
 
<!-- English -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://www.google.com/language_tools','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/us.gif" alt="Open Google Translator" width="15" height="10" border="0" /> <span title="Open Google Translator">English</span></a></td></tr>
 
<!-- Finnish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=fi&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/fi.gif" alt="Finnish" width="15" height="10" border="0" /> <span title="Finnish">Suomi</span></a></td></tr>
 
<!-- French -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=fr&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/fr.gif" alt="French" width="15" height="10" border="0" /> <span title="French">Fran?ais</span></a></td></tr>
 
<!-- German -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=de&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/de.gif" alt="German" width="15" height="10" border="0" /> <span title="German">Deutsch</span></a></td></tr>
 
<!-- Greek -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=el&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/gr.gif" alt="Greek" width="15" height="10" border="0" /> <span title="Greek">Ελληνική</span></a></td></tr>
 
<!-- Hindi -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=hi&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/in.gif" alt="Hindi" width="15" height="10" border="0" /> <span title="Hindi">हिन्दी</span></a></td></tr>
 
<!-- Italian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=it&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/it.gif" alt="Italian" width="15" height="10" border="0" /> <span title="Italian">Italiano</span></a></td></tr>
 
<!-- Japanese -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ja&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/jp.gif" alt="Japanese" width="15" height="10" border="0" /> <span title="Japanese">日本語</span></a></td></tr>
 
<!-- Korean -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ko&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/kr.gif" alt="Korean" width="15" height="10" border="0" /> <span title="Korean">한국어</span></a></td></tr>
 
<!-- Norwegian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=no&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/no.gif" alt="Norwegian" width="15" height="10" border="0" /> <span title="Norwegian">Norsk</span></a></td></tr>
 
<!-- Polish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=pl&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/pl.gif" alt="Polish" width="15" height="10" border="0" /> <span title="Polish">Polski</span></a></td></tr>
 
<!-- Portuguese -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=pt&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/pt.gif" alt="Portuguese" width="15" height="10" border="0" /> <span title="Portuguese">Portugu?s</span></a></td></tr>
 
<!-- Romanian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ro&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/ro.gif" alt="Romanian" width="15" height="10" border="0" /> <span title="Romanian">Rom?nă</span></a></td></tr>
 
<!-- Russian -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=ru&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/ru.gif" alt="Russian" width="15" height="10" border="0" /> <span title="Russian">Русский</span></a></td></tr>
 
<!-- Spanish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinez1=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=es&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/es.gif" alt="Spanish" width="15" height="10" border="0" /> <span title="Spanish">Espa?ol</span></a></td></tr> 
 
<!-- Swedish -->
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=$vboptions[bburl]/showthread.php?t=$thread[threadid]&amp;sl=en&amp;tl=sv&amp;hl=en&amp;ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<img src="$stylevar[imgdir_button]/se.gif" alt="Swedish" width="15" height="10" border="0" /> <span title="Swedish">Svenska</span></a></td></tr>
 
</table></div>
 
<!-- / LANGUAGE TRANSLATOR MENU -->
And your done.


I will be adding additional language options like I had in the previous modification to Post 2. But because Google now translates the full spectrum of their available languages to the full spectrum of their available languages, the previous manner I had just isn't practical and wont fit into one post. So I will be adding [Language] to... options one by one as time permits. If you have a request, I'll move it to the front of the list. But until then I'm jut going thought them one language at a time. Thanks, and I hope you enjoy this update.
Reply With Quote
  #13  
Old 08-22-2008, 05:52 PM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how about english to urdu?
Reply With Quote
  #14  
Old 08-22-2008, 11:12 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by apiasto View Post
how about english to urdu?
Google doesn't have an option to translate to Urdu.
Reply With Quote
  #15  
Old 08-23-2008, 06:11 PM
dxflw dxflw is offline
 
Join Date: May 2008
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod man!Congratulations!
Reply With Quote
  #16  
Old 08-24-2008, 02:55 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

EDIT: I'm brain dead, I already posted Chinese to...
https://vborg.vbsupport.ru/showthread.php?p=1602664
Reply With Quote
  #17  
Old 08-24-2008, 12:36 PM
dirtyfeast dirtyfeast is offline
 
Join Date: May 2008
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It does not work for me. My forum has been crawling with google bots for the last 3 months. It is open to public to read, and I have followed the instructions to get this to work. All is good. I click on Translate, and than select Spanish as an example. The new window opens up, goes to black, a little flicker, and than my firefox shuts down. Here is my site. http://www.unitedsocomleague.com/forum

Any help would be greatly appreciated.
Reply With Quote
  #18  
Old 08-24-2008, 04:58 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dirtyfeast View Post
It does not work for me. My forum has been crawling with google bots for the last 3 months. It is open to public to read, and I have followed the instructions to get this to work. All is good. I click on Translate, and than select Spanish as an example. The new window opens up, goes to black, a little flicker, and than my firefox shuts down. Here is my site. http://www.unitedsocomleague.com/forum

Any help would be greatly appreciated.
I get a "Sorry, You Must Have Javascript Enabled To View This Site" message in whatever language I click on. I know the translator disables all Javascript when converting a page, so I'm guesing it's that your site can't be viewed with Javscript disabled.
Reply With Quote
  #19  
Old 08-24-2008, 05:58 PM
diim_nowa diim_nowa is offline
 
Join Date: Apr 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Digital Jedi,

And from Russian it is possible?
Reply With Quote
  #20  
Old 08-24-2008, 06:45 PM
dirtyfeast dirtyfeast is offline
 
Join Date: May 2008
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
I get a "Sorry, You Must Have Javascript Enabled To View This Site" message in whatever language I click on. I know the translator disables all Javascript when converting a page, so I'm guesing it's that your site can't be viewed with Javscript disabled.
I do not have Javascript disabled for my site.
Reply With Quote
  #21  
Old 08-24-2008, 06:58 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by diim_nowa View Post
Digital Jedi,

And from Russian it is possible?
Sure, I'll post one here in a few.

Quote:
Originally Posted by dirtyfeast View Post
I do not have Javascript disabled for my site.
I didn't say you did. (Javascript is something an individual enables/disables on his computer while browsing the web.) I said Google disables Javascript on conversion and that your site can't be viewed with Javascript disabled.

What you can do is track down the javascript that your site requires for viewing it, and fix it to where users who don't have Javascript enabled can still view it. That's kind of a good idea anyway, because there are still people out there who either don't browse with Javascript enabled, or who simply don't have the functionality.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:45 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04834 seconds
  • Memory Usage 2,422KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete