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

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
  #72  
Old 02-16-2008, 09:30 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its the flash header. I reverted the header template back to the default and Wah-la it worked perfectly. Google for some reason is having a problem with it. Got any ideal???
Reply With Quote
  #73  
Old 02-16-2008, 09:52 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a jack-leg fix, and I'm not sure it will work, but do you happen to have an alternate skin that doesn't use the flash headers? One of the things I had to do with the old Bablefish hack, was change the URLs in the code to something else. Like for awhile there, I had them link to the archive version of the thread, or to a different style ID. Like I said, it's a jack-leg fix, but the first thing that popped into my head.
Reply With Quote
  #74  
Old 02-16-2008, 11:37 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No the Flash header is a part of the site. Now that I know what the problem is I'll dig around on Google and see if theres a fix. As soon as I get it working Ill post the results here so you can add to your instructions. Thanks for everything... Daniel

One more thing. I tried putting the code into the navbar so I could translate all my portal pages but I couldn't get the <tr><td>~</td></tr>. part of the code to work anywhere. The button was easy to place anywhere on the navbar. Any Ideal where to but all the Country code?
Reply With Quote
  #75  
Old 02-17-2008, 10:44 AM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem solved. There were 2 issues with this hack not working with the Google Translator.

1st: For some reason Google didn't like my "objectSwap.js" This is the code to get around the pesky active X on IE.

2nd: There was a snag with my Flash content. I was using a Macromedia Shockwave Flash 6 but it kept hanging at the content. I changed it to Flash 8 and still it got stuck. SO.... I stuck the flash on its own page and used an IFrame in the header.

I know, I know its an Iframe but it works.

Now to move it into the Navbar so all pages can be translated. This would be handy for everyone with the VBadvanced CMPS portal system like myself. Make all global pages translatable. Also need to look into a fix for the ended session when translated. Any ideals.
Reply With Quote
  #76  
Old 02-17-2008, 12:44 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got this into the navbar. Not really hard at all but who knows how to change the language code from "showthread.php" to translate the entire page from the navbar?

Heres the basic code for one language.
PHP Code:
<tr><td class="vbmenu_option"><a href="#" onClick="Martinezl=window.open('http://translate.google.com/translate?u=http%3A%2F%2Fwww.YOURDOMAIN.NET%2Fshowthread.php%3Ft%3D$thread[threadid]&langpair=en%7Car&hl=en&newwindow=1&safe=off&ie=UTF-8&oe=UTF-8&prev=%2Flanguage_tools','','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">Arabic</span></a></td></tr
Reply With Quote
  #77  
Old 02-17-2008, 01:44 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 Scalemotorcars View Post
Problem solved. There were 2 issues with this hack not working with the Google Translator.

1st: For some reason Google didn't like my "objectSwap.js" This is the code to get around the pesky active X on IE.

2nd: There was a snag with my Flash content. I was using a Macromedia Shockwave Flash 6 but it kept hanging at the content. I changed it to Flash 8 and still it got stuck. SO.... I stuck the flash on its own page and used an IFrame in the header.

I know, I know its an Iframe but it works.
That's great. I'm glad you posted it here in case anyone encouters the same problem. Hey, I've always thought Iframes were awesome.

Quote:
Now to move it into the Navbar so all pages can be translated. This would be handy for everyone with the VBadvanced CMPS portal system like myself. Make all global pages translatable. Also need to look into a fix for the ended session when translated. Any ideals.
Quote:
Originally Posted by Scalemotorcars View Post
Got this into the navbar. Not really hard at all but who knows how to change the language code from "showthread.php" to translate the entire page from the navbar?
Give me just a couple of days, and I'll post the vBadvanced version of this. In order to get the benefit from it in the Navbar, you would need completely different code in the URL area. It's not hard, just different based on your needs.
Reply With Quote
  #78  
Old 02-17-2008, 04:43 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That would be awesome. I'm looking forward to it. :up:
Reply With Quote
  #79  
Old 02-19-2008, 04:17 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any luck yet? I haven't had the time myself but Ill give it a wack sometime this week if you don't have the time either.
Reply With Quote
  #80  
Old 02-21-2008, 12:32 PM
Scalemotorcars's Avatar
Scalemotorcars Scalemotorcars is offline
 
Join Date: Mar 2006
Location: NC
Posts: 619
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not having any luck with this.

To recap. I'm trying to get this to work from any .com page. Especially with the vbadvanced CMPS pages and the forum.

Its easy enough to add the Language button to the navbar but I cant get the rest of the code to work from that location. Any ideals???
Reply With Quote
  #81  
Old 02-21-2008, 12:56 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There's a slight bug with the one I'm working with. It worked earlier, but I noticed that it didn't like some modifications to my portal page. I'm trying to work that out to see if it's the new HTML I added, or on Google's end.
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 04:32 PM.


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.08753 seconds
  • Memory Usage 2,328KB
  • 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_php
  • (3)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