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
  #22  
Old 11-02-2008, 05:26 AM
7lanet's Avatar
7lanet 7lanet is offline
 
Join Date: Aug 2007
Location: YeMeN
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:*_*:
Reply With Quote
  #23  
Old 11-05-2008, 10:14 PM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the nice mod..
Quote:
Originally Posted by akulion View Post
When I highlight the text the translation box appears, but after selecting the language and pressing "go" it just shows a tab saying "close window"...any idea why?
Because the font color inside the box is the same as the background color
Can some one help telling us how to change the font color inside the box
Reply With Quote
  #24  
Old 11-09-2008, 01:52 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ghanem View Post
Thank you for the nice mod..
Because the font color inside the box is the same as the background color
Can some one help telling us how to change the font color inside the box
I am having a similar problem: My popup box background color is the same as my forum page and because of this, the text cannot be easily seen. I wish I could change the background color. I cannot install this mod until I get some help with changing the font color and background color.

Another thing that would be helpful is that if the popup could be made to locate itself to the center of the page instead of whereever the highlighted text might appear. This request is because if one highlights some text near the far right edge of the screen, the popup is half off the page and can not be dragged into view or seen - rendering it useless.

This mod has potential, but until it is developed a bit more it is hard to use. Thanks for working on this. I hope you or someone with programing knowledge can fix the bugs.

Thanks,
kether
Reply With Quote
  #25  
Old 11-16-2008, 11:23 PM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It has been awhile - anyone ? (Bump)
Reply With Quote
  #26  
Old 11-17-2008, 12:26 AM
rob01 rob01 is offline
 
Join Date: Sep 2008
Location: Mexico
Posts: 410
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how this work?
Reply With Quote
  #27  
Old 12-12-2008, 01:07 AM
kether1 kether1 is offline
 
Join Date: Jun 2006
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kether1 View Post
I am having a similar problem: My popup box background color is the same as my forum page and because of this, the text cannot be easily seen. I wish I could change the background color. I cannot install this mod until I get some help with changing the font color and background color.

Another thing that would be helpful is that if the popup could be made to locate itself to the center of the page instead of wherever the highlighted text might appear. This request is because if one highlights some text near the far right edge of the screen, the popup is half off the page and can not be dragged into view or seen - rendering it useless.

This mod has potential, but until it is developed a bit more it is hard to use. Thanks for working on this. I hope you or someone with programing knowledge can fix the bugs.

Thanks,
kether
Anyone?
Thanks! K
Reply With Quote
  #28  
Old 12-12-2008, 02:24 AM
brhoom brhoom is offline
 
Join Date: Mar 2006
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice addon
Reply With Quote
  #29  
Old 01-14-2009, 03:32 PM
demoniavbh demoniavbh is offline
 
Join Date: Nov 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could it be possible to let user choose if they want this enabled or not?
I only have a few foreign members and this would be very helpful for them, but the other members will get pissed off by getting that everytime they mark something...
Reply With Quote
  #30  
Old 01-14-2009, 03:47 PM
Coroner Coroner is offline
 
Join Date: Feb 2008
Location: Germany
Posts: 797
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should come in a later version - but this time, I'm too busy.
Reply With Quote
  #31  
Old 01-14-2009, 04:19 PM
demoniavbh demoniavbh is offline
 
Join Date: Nov 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, perfect, I just wanted to know if that could be possible

Whenever you have time (don't worry) do it and update for 3.8:P

THANKS A LOT!
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 07:10 PM.


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.05815 seconds
  • Memory Usage 2,325KB
  • Queries Executed 25 (?)
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
  • (4)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
  • (4)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_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