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
  #32  
Old 01-25-2008, 11:03 AM
vbob vbob is offline
 
Join Date: Jan 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
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 =/ ).
:-)

I believe that this mod is wonderful!!! :-)
(and thank you for your mod) :-)
To solve any problems, You should begin with the rule "keep it simple". :-)
If I were you, i would give 3 kind of different "Code situations" so anyone can fit the code in his needs. :-)

1) Make a script that can translate FROM: Any* Language TO: English (that could be very useful as English language is the Language that most of people could understand). So if someone have a i.e. Greek language board, can use the Greek to English option to be sure that at least the translation to the basics will be done for sure. :-)
*= by "Any language" I mean the languages that you already have in the script. :-)
2) Give people an example of "how to" transform existing code to make the script translate from "Any" to "Any" language he like (all the combinations) :-)
3) Make sure the code is simple (so it is surelly supported from all browsers)
4) Then make any experiments and supply people with the script that can do tricks like the one you've done as alternative.

So people can really have a code fitted to their needs, and working for sure. As for the alternative, they could experiment them selfs with various of browsers and give you feedback too. :-)

I hope I helped somehow. :-)
(keep up the good work...!!! I love that mod, thank you. Looking forward for the new "working in all browsers and flexible" (Greek to English...Greek to Any, Any to Any) version.....):-)

(ohh...it would be useful to have icons with words too in the menu like the way I show you below.
for example
[Icon_Country_Flag] Greek to [Icon_Country_Flag] English
[Icon_Country_Flag] Greek to [Icon_Country_Flag] German
.
.
.
etc......

(the ideal should be to recognize the language automatically and the user could just select the language he like to translate "to", but its is difficult and could have problems) :-)
Reply With Quote
  #33  
Old 01-25-2008, 06:46 PM
vbob vbob is offline
 
Join Date: Jan 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by baghdad4ever View Post
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
For me (my site) it Works fine Both in Firefox and I.E. and Opera too...!!! :-)
I checked your site and yes it have problem with I.E.

Check Out my forum and try to translate from Greek to English if you like to see if you have problem with I.E., Opera, and Firefox there...!!! :-)

http://madseeds.com/forum

Here is the Code I used for my forum (Step.2)

PHP Code:
<!-- Language Translator Menu -->
  <
div class="vbmenu_popup" id="languagemenu_menu" style="display:none">
        <
table cellpadding="4" cellspacing="1" border="0">
<
tr><td class="thead">Translate</td></tr>
 


<!--
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.madseeds.com/forum%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')">
<
img src="$stylevar[imgdir_button]/gr.gif" alt="Greek" width="15" height="10" border="0" /><span title="Greek">Greek to English Translation</span> <img src="$stylevar[imgdir_button]/us.gif" alt="English" width="15" height="10" border="0" /></a></td></tr>
 
  
   </
table></div>
 
  <!-- / 
Language Translator Menu --> 

(I also Changed the "Language" title to "Translation" title..!!!)
Later when i find some time I will fix it for the other languages too if I can..!!! :-)
I prefer to have simple menus so any unexperienced user can use it...(I mean that I want the menu to work to all browsers for sure)!!! :-)
Reply With Quote
  #34  
Old 01-26-2008, 01:23 AM
yeku yeku is offline
 
Join Date: May 2005
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, my forum is in Spanish.

What I have to do modifications because you do not work

I need you to help me please.

thanks
Reply With Quote
  #35  
Old 01-26-2008, 09:57 AM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, guys. This took me a bit longer to put together then I thought it would. I'm sure it's not completely perfect, but see post 2 of this thread again. You can now add a link to all the available language options that Google offers.

Vbob, thanks for letting me know about the translation working in Greek. That's really the only thing about this mod that I can't test myself, so thanks much for the feedback. And thanks also for the suggestions. I was thinking along the same lines as well.

Baghad4ever, I'm sorry. But it appears to be an issue with Google and IE. My uneducated guess would be that is has something to do with the fact that their is a "vb" in your thread URLs. One other user had the same problem with way his URLs were formatted. Still, I can't imagine why FireFox would translate just fine and IE wouldn't. But at the moment, I don't know why.

Apiasto, see the new version I added to post 2 just now.

Yeku, what problems are you having exactly? If your trying find a Spanish to English translator, I only just added that now in post 2.
Reply With Quote
  #36  
Old 01-26-2008, 11:47 AM
yeku yeku is offline
 
Join Date: May 2005
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
In order to accept POST request originating from this domain, the admin must add this domain to the whitelist.
This is the answer, in admincp, I have "google.com/language_tools" and "translate.google.com/translate?"

Also when I try to make a translation, finalize session:erm:

What do I do wrong??

pd: Alternative 2, post n?2
Reply With Quote
  #37  
Old 01-26-2008, 12:09 PM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In order to accept POST request originating from this domain, the admin must add this domain to the whitelist.

I get that too when i try to translate Italian to english all the rest work fine,just this.
Reply With Quote
  #38  
Old 01-26-2008, 02:40 PM
baghdad4ever baghdad4ever is offline
 
Join Date: Apr 2007
Location: baghdad
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks my dear

but my forum is arabic lang

so

only translate to english would be work

bec the google option only from arabic to english

so how can i made another translations to be work??
Reply With Quote
  #39  
Old 01-26-2008, 02:57 PM
vbob vbob is offline
 
Join Date: Jan 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Digital Jedi View Post
Vbob, thanks for letting me know about the translation working in Greek. That's really the only thing about this mod that I can't test myself, so thanks much for the feedback. And thanks also for the suggestions. I was thinking along the same lines as well.
You are welcome Digital Jedi. I am glad I helped. Thanks for your mod..!!! :-)
It is working fine for me (Greek to English and English to Greek Translation, tested in Firefox, I.E., Opera) :-)
Reply With Quote
  #40  
Old 01-26-2008, 03:18 PM
Digital Jedi's Avatar
Digital Jedi Digital Jedi is offline
 
Join Date: Oct 2006
Location: PopCulturalReferenceLand
Posts: 5,171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Lombardo, yeku, in order for Google to translate a page, it needs to be able to see your page. So you'd need Guest browsing enabled, as you wont be able to log in from a translated page. I'm sorry, that's just how Google's service works.

baghdad4ever, what additional languages are you looking for? Have you tried the other language options yet? Sorry if I'm misunderstanding you.

Vbob, that's good to know. Feel free to ping this thread if you run into any other problems.
Reply With Quote
  #41  
Old 01-26-2008, 03:30 PM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works now mate,thanks a lot for your efforts mate.Its much appreciated.
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 06:47 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.05385 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
  • (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