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

Reply
 
Thread Tools
AJAX Google Translator Details »»
AJAX Google Translator
Version: 1.00, by Coroner Coroner is offline
Developer Last Online: Dec 2011 Show Printable Version Email this Page

Category: End-User Options - Version: 3.7.2 Rating:
Released: 09-04-2008 Last Update: Never Installs: 62
Template Edits Auto-Templates
Translations  
No support by the author.

What this MOD do ?
It will translate a marked Text - that's all.

How does it works ?
Simply mark a text and a little Textbox appears. Choose Language to translate from an to. Click "Go".

Tested on the following Browsers:
  • IE
  • Mozilla 3
  • Opera
  • Safari
How to install with TMS ?
Simply import the Product - finish !

How to install without TMS ?
Import the Product.

Now, two Templates has to be changed:
  • headinclude
    search for
    Quote:
    <script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
    add below
    Code:
    <script type="text/javascript" src="clientscript/google_translate.js"></script>
    <script type="text/javascript">
    <!--
    var GOOGLE_ERROR = "$vbphrase[googletranslator_error]";
    var GOOGLE_TEXT  = "$vbphrase[googletranslator_text_first]";
    // -->
    </script>
  • footer
    search for
    Code:
    $ad_location[ad_footer_start
    add below
    Code:
    <script type="text/javascript">
    <!--
    var translate_from = "en";
    var translate_to   = "de";
    // -->
    </script>
    <div id="translation" style="visibility: hidden; border: 1px; position: absolute; left: 0px; top: 0px" class="tborder">
     <div class="tcat">
       <a style="display: block; text-align: right; padding: 6px; font-size: 9px;" href="#" onclick="this.parentNode.parentNode.style.visibility='hidden'">$vbphrase[googletranslator_close_window]</a>
      </div>
     <div style="padding: 6px;"></div>
    </div>
    <div id="translate" style="visibility: hidden; border: 1px; position: absolute; left: 0px; top: 0px" class="tborder">
     <div class="thead">
      <img src="images/ico_searching.gif" alt="" style="vertical-align: middle; display: none;" />
      <span class="normalfont">$vbphrase[googletranslator_translate_from]:
      <select name="trans_from" onchange="translate_from=this.options[this.selectedIndex].value">
       <option value="ar">$vbphrase[googletranslator_arabic]</option>
       <option value="bg">$vbphrase[googletranslator_bulgarian]</option>
       <option value="zh-CN">$vbphrase[googletranslator_chinese]</option>
       <option value="hr">$vbphrase[googletranslator_croatian]</option>
       <option value="cs">$vbphrase[googletranslator_czech]</option>
       <option value="da">$vbphrase[googletranslator_danish]</option>
       <option value="nl">$vbphrase[googletranslator_dutch]</option>
       <option value="en" selected="selected">$vbphrase[googletranslator_english]</option>
       <option value="fi">$vbphrase[googletranslator_finnish]</option>
       <option value="fr">$vbphrase[googletranslator_french]</option>
       <option value="de">$vbphrase[googletranslator_german]</option>
       <option value="el">$vbphrase[googletranslator_greek]</option>
       <option value="hi">$vbphrase[googletranslator_hindi]</option>
       <option value="it">$vbphrase[googletranslator_italian]</option>
       <option value="ja">$vbphrase[googletranslator_japanese]</option>
       <option value="ko">$vbphrase[googletranslator_korean]</option>
       <option value="no">$vbphrase[googletranslator_norwegian]</option>
       <option value="pl">$vbphrase[googletranslator_polish]</option>
       <option value="pt">$vbphrase[googletranslator_portuguese]</option>
       <option value="ro">$vbphrase[googletranslator_romanian]</option>
       <option value="ru">$vbphrase[googletranslator_russian]</option>
       <option value="es">$vbphrase[googletranslator_spanish]</option>
       <option value="sv">$vbphrase[googletranslator_swedish]</option>
      </select>
      $vbphrase[googletranslator_translate_to]  
      <select name="trans_to" onchange="translate_to=this.options[this.selectedIndex].value">
       <option value="ar">$vbphrase[googletranslator_arabic]</option>
       <option value="bg">$vbphrase[googletranslator_bulgarian]</option>
       <option value="zh-CN">$vbphrase[googletranslator_chinese]</option>
       <option value="hr">$vbphrase[googletranslator_croatian]</option>
       <option value="cs">$vbphrase[googletranslator_czech]</option>
       <option value="da">$vbphrase[googletranslator_danish]</option>
       <option value="nl">$vbphrase[googletranslator_dutch]</option>
       <option value="en">$vbphrase[googletranslator_english]</option>
       <option value="fi">$vbphrase[googletranslator_finnish]</option>
       <option value="fr">$vbphrase[googletranslator_french]</option>
       <option value="de" selected="selected">$vbphrase[googletranslator_german]</option>
       <option value="el">$vbphrase[googletranslator_greek]</option>
       <option value="hi">$vbphrase[googletranslator_hindi]</option>
       <option value="it">$vbphrase[googletranslator_italian]</option>
       <option value="ja">$vbphrase[googletranslator_japanese]</option>
       <option value="ko">$vbphrase[googletranslator_korean]</option>
       <option value="no">$vbphrase[googletranslator_norwegian]</option>
       <option value="pl">$vbphrase[googletranslator_polish]</option>
       <option value="pt">$vbphrase[googletranslator_portuguese]</option>
       <option value="ro">$vbphrase[googletranslator_romanian]</option>
       <option value="ru">$vbphrase[googletranslator_russian]</option>
       <option value="es">$vbphrase[googletranslator_spanish]</option>
       <option value="sv">$vbphrase[googletranslator_swedish]</option>
      </select>
      </span> <input type="button" class="button" name="btngo" value="$vbphrase[googletranslator_go]" onclick="translateSelection(translate_from, translate_to, 1);" />
     </div>
    </div>
Supported Languages by Google:
  1. Arabic
  2. Bulgarian
  3. Chinese
  4. Croatian
  5. Czech
  6. Danish
  7. Dutch
  8. English
  9. Finnish
  10. French
  11. German
  12. Greek
  13. Hindi
  14. Italian
  15. Japanese
  16. Korean
  17. Norwegian
  18. Polish
  19. Portuguese
  20. Romanian
  21. Russian
  22. Spanish
  23. Swedish
Known Bugs ?
I didn't found some Bugs. Sometimes the translated Text doesn't appears, but if I marked a shorter Text, it works.

Used Queries ?
None

P.S. deutschen Support gibt es auch bei your-vb

Show Your Support

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

Comments
  #42  
Old 02-21-2009, 12:31 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Had to un-install. It conflicted with other Ajax features of my site. Not support so I couldn't get it fixed. Sad, its a great mod and would have been handy to have.
Reply With Quote
  #43  
Old 04-08-2009, 04:37 PM
RWerksman RWerksman is offline
 
Join Date: Dec 2007
Posts: 77
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by VargTimmen View Post
Hi,

I installed this, because we have a few english member on our board, who need this.
The problem is, that for every marking up text, the translator pops up.
This would not be so annoying, but you can't click it away. Or set it up, if you want to occur the popup.
I need, you don't have actually much time, but it would be very great, if you can fix it.

Beside of that, the guys from the KDE Desktop Project developed an Inline Google Translation, which gives the user the opportunity to choose in which language he want to translate an entire post.

Mod
Official Live Demo
Live Demo at an Testforum by me

Could you do a similar mod for vBulletin? This would be awesome

Greetings from germany
Benny
That is a fantastic modification! I only wish that was available for VB.
Reply With Quote
  #44  
Old 05-21-2009, 01:33 AM
gcxboxps gcxboxps is offline
 
Join Date: Jun 2008
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible you can make this so that they can type into it?
Reply With Quote
  #45  
Old 06-10-2009, 03:03 PM
nrms?'s Avatar
nrms? nrms? is offline
 
Join Date: Dec 2008
Location: Portugal
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tested... and removed.
This mod not work in Internet Exp7...

And in Firefox when click "close translator" it return to home forum page. Some fix...?
Reply With Quote
  #46  
Old 06-19-2009, 08:13 PM
relaxiha relaxiha is offline
 
Join Date: Jan 2009
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hello
please update for 3.8.3
and addtion lang
Reply With Quote
  #47  
Old 11-17-2009, 10:34 AM
GeoMapia GeoMapia is offline
 
Join Date: May 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Google Translator does not work for me today!
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 09:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04180 seconds
  • Memory Usage 2,279KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_code
  • (2)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
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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