Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
Translate a Thread in a Google Pop-Up Window Details »»
Translate a Thread in a Google Pop-Up Window
Version: 2.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.6.x Rating:
Released: 01-21-2008 Last Update: 08-18-2008 Installs: 29
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

Support and updates for this mod will now be given in the 3.7.x thread, as this should work no matter what your version of vB. If you have any questions, please ask in that thread.





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.

Supporters / CoAuthors

Show Your Support

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

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

Okay, minor wording problem on the Post 2 <!--comments--> fixed. That would not have affected performance at all. But it sure would have made support a bit more confusing then it already is.
Reply With Quote
  #23  
Old 01-24-2008, 10:54 PM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my forum http://www.ucsampdoria.co.uk
Reply With Quote
  #24  
Old 01-24-2008, 11:14 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 Lombardo View Post
Okay, I think I see the problem. It actually is opening. But it's opening way down towards the bottom of the next post. Remember in the instructions where I say that you may need to adjust this line margin-top:-308px to maintain the illusion that the menu is changing? That's what's happening here. The old menu is closing, but the new menu is opening in the wrong part of the screen.

I see you adjusted that line a little bit, setting -308 to -300. But actually, your going to need a larger negative number. Right now it looks like this:

Code:
 
  <!-- English to [LANGUAGE] Submenu -->
<div class="vbmenu_popup" id="english_menu" style="display:none;margin-left:0px;margin-top:-300px;">
Change the -300 to something like -600 and play around with that. Because everyone's styles are different, everyone will likely have to adjust that line to get it to line up just perfectly. The larger the negative number the higher it will go. The closer to 0 you get the lower it will go.

By the way, what browser are you using?
Reply With Quote
  #25  
Old 01-24-2008, 11:23 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ugh, apparently this is a browser compatibility thing. I just checked FireFox and it opens the menu in a completely different location. I can probably fix this. But I'll need some time.
Reply With Quote
  #26  
Old 01-24-2008, 11:26 PM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so no point changing it?
Reply With Quote
  #27  
Old 01-25-2008, 07:10 AM
apiasto's Avatar
apiasto apiasto is offline
 
Join Date: Oct 2006
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice work,my question is could v add any other languages to the menu? thnx
Reply With Quote
  #28  
Old 01-25-2008, 07:51 AM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks
Reply With Quote
  #29  
Old 01-25-2008, 08:12 AM
vbob vbob is offline
 
Join Date: Jan 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I checked out again. Because guests can read (they have permissions) my forum that's not a problem for google(Google can see/read all the text needed)!!! Google just have "extra text" (the welcome message) to translate.... :-) :-) so everything is ok for guests and google !!!The only problem is that I have to change the From Language in First case of code..to Greek (the default is english)!!! The hover menu in second case, just don't work for me (I am using firefox). (and in general I think that many users will be confused too) I prefer to use the first case of code (the simplicity of the menu I mean) and not the alternative one.

I tested the second case (I added that "second case" part of code after the "Greek" in the first case of code - Not the alternative)

PHP Code:
<!--Greek to English-->
<
tr><td align="right" class="vbmenu_option"><a href="#" onClick="Fenster1=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.MYSITE.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=el%7Cen&hl=en&ie=UTF-8','','directories=no,location=no,resizable=yes,scrollbars=yes,toolbar=no,status=no,menubar=no,width=800,height=800')">
<
span title="Greek">Greek</span> <img src="$stylevar[imgdir_button]/gr.gif" alt="Greek" width="15" height="10" border="0" /></a></td></tr
And it works fine...!!!
The question is that I want to translate from Greek to any language
What should i do for the rest languages?
Reply With Quote
  #30  
Old 01-25-2008, 09:19 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The alternative code, and this my fault really, as I didn't check FireFox before I went to bed last night, wont necessarily work for cross browsers. Both browser require different lines of code to align them similarly. And everything I've looked at so far just seems inelegant from what I had intended. This is really my fault also for trying to get fancy with code I'm not all that familiar with.

I think I have a much simpler, more elegant solution for folks, without trying to get all fancy and cute. It should actually provide a solution for everyone. Just give me a few to edit Post 2. If it gets to late tonight (6 AM here), I'll try to have a replacement up by Friday night, barring flood or famine (or just forgetting to pay my Internet bill =/ ).
Reply With Quote
  #31  
Old 01-25-2008, 09:26 AM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i love this mod but

sorry it is not work on IE

but it work on firefox

see this

http://www.baghdad4ever.net/vb/showt...362#post791362
Reply With Quote
Reply

Thread Tools

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 08:42 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.07462 seconds
  • Memory Usage 2,320KB
  • Queries Executed 26 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)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