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
  #12  
Old 01-23-2008, 05:04 PM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can't translate things to english it takes you to a translation page to do it yourself,can that be changed?
Reply With Quote
  #13  
Old 01-23-2008, 08:45 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
can't translate things to english it takes you to a translation page to do it yourself,can that be changed?
The English link is there as a courtesy mainly. The way Google's "Translate a Web Page" works is it has to know what language your translating to and from. So it is possible to get it to translate to English, but the starting language would always have to be the same, meaning ALWAYS Spanish to English or ALWAYS Dutch to English, etc. Likely not practical to most forums.

I may be able to come up with an modification to the modification (I just like saying that) that adds all of Google's [Insert Language] to English options. But it may take me a bit to make it practical and user friendly. I'll look into it.
Reply With Quote
  #14  
Old 01-23-2008, 10:55 PM
Itworx4me's Avatar
Itworx4me Itworx4me is offline
 
Join Date: Feb 2002
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this mod. I also have vbseo installed and it doesn't play very friendly with the mod. I get red x's where images should be. Anyway of making this vbseo friendly?

Thanks,
Itworx4me
Reply With Quote
  #15  
Old 01-24-2008, 12:31 AM
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 Itworx4me View Post
I have installed this mod. I also have vbseo installed and it doesn't play very friendly with the mod. I get red x's where images should be. Anyway of making this vbseo friendly?

Thanks,
Itworx4me
Not without knowing more about vBSEO. My first impression though, presuming the link in your profile is the correct site, is that it's Google causing the problem and not a conflict with the two mods, per se. I took one of your threads and copy and pasted the URL into Google's "Translate a Web Page" directly, and it did the same thing. Apparently, each time it translates a page it thinks the images are in the same directory as your thread. So, for example, if there's a post icon in a thread in General Chat, Google thinks the icon is located at:

/general-chat/images/icons/icon10.gif

Rather than where it actually is, in:

/images/icons/icon10.gif

Same thing for an image in NHRA. It tacks /nhra just after the .com. I hate to leave it at that, but unless I know more about how vBSEO formats your threads, I'm afraid this is one of those "don't know" questions. For now anyway. I'll do my best to look into it.
Reply With Quote
  #16  
Old 01-24-2008, 08:31 AM
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
can't translate things to english it takes you to a translation page to do it yourself,can that be changed?
Lombardo, and to anyone else interested, I added an alternative version of the mod that should do what you asked. Please see Post 2 for more information and let me know this works for you.
Reply With Quote
  #17  
Old 01-24-2008, 12:56 PM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get it too work mate,first thing its hard to keep your cursor over it to click it because it just closes and when i eventually get to click it nothing happens.
Reply With Quote
  #18  
Old 01-24-2008, 02:04 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, that might be the problem. Your not supposed to click it. It just opens when you move your mouse over it. vBulletin menus just open once you've already opened a window. For example, try opening a regular drop down, and you'll notice when move your mouse over any of the other ones, they open and close without clicking. If you click them, you close it again.

That's what's been happening here. Just mouse over the menu like you would any other kind of drop down menu, and the sub menu will automatically open. If you try to click it, your just going to turn the menu off.
Reply With Quote
  #19  
Old 01-24-2008, 07:51 PM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah when i put my mouse over it it closes tho.
Reply With Quote
  #20  
Old 01-24-2008, 08:30 PM
vbob vbob is offline
 
Join Date: Jan 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
My main Language of my forum is Greek. I want to translate Greek to English...etc...!!! When I press the menu to translate my thread to English, the pop up does not translate anything, but it just shows me the Google translation page...!!! What should I change to the code so it can be functional from Greek to any other language???
Edit: Hmm another issue: ...I have the "Welcome" mod for guests to show them a message and invite them to register to the site...!!! it seems that if the mod translates something from the thread it just translate the welcome message - because google isn't a registered user and sees that message!!!! Is there a way to make the mod tranlate the thread correctly? :-)
(Still...when I press the english flag, it just shows me the Google translation page only and doesn't do any translation)

Thank you...!!! :-)
Reply With Quote
  #21  
Old 01-24-2008, 10:08 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
Yeah when i put my mouse over it it closes tho.
It shouldn't. Can I see a link to where you have it installed?

Quote:
Originally Posted by vbob View Post
Hi,
My main Language of my forum is Greek. I want to translate Greek to English...etc...!!! When I press the menu to translate my thread to English, the pop up does not translate anything, but it just shows me the Google translation page...!!! What should I change to the code so it can be functional from Greek to any other language???
See post two of this thread. That's the alternative if you want more [LANGUAGE] to English options.

If you don't want all those options, you could also just remove the block of code marked <!--English--> in the first version and replace it with the line of code marked <!--English To Greek--> in Post 2. EDIT: (Yes, I just realized I have that entire menu marked wrong. They shoud all be marked [LANGUAGE] to English, not English to [LANGUAGE])

Quote:
Edit: Hmm another issue: ...I have the "Welcome" mod for guests to show them a message and invite them to register to the site...!!! it seems that if the mod translates something from the thread it just translate the welcome message - because google isn't a registered user and sees that message!!!! Is there a way to make the mod tranlate the thread correctly? :-)
Unfortunately, no. Google can only translate what it can see. Or conversely, it will translate everything it sees. Basically this mod utilized 3rd party functionality, and as such, is limited by what the 3rd party offers. But I have presented the issue to Google. It remains to be seen when (or if) they'll get back to me.

Quote:
(Still...when I press the english flag, it just shows me the Google translation page only and doesn't do any translation)
See above.

Quote:
Thank you...!!! :-)
No problem.
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 03:15 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.04735 seconds
  • Memory Usage 2,326KB
  • 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
  • (8)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_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