Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Google's website translator Details »»
Google's website translator
Version: 1.00, by linuxututs linuxututs is offline
Developer Last Online: Jan 2012 Show Printable Version Email this Page

Category: Integration with vBulletin - Version: 4.0.0 Rating:
Released: 01-01-2010 Last Update: Never Installs: 18
Template Edits
 
No support by the author.

Google's website translator

Translate your website with Google: Expand your audience globally

Live Demo: LinuxTuts

This is straight from google and is nothing compared to "NLP-er's" translator Mod for 3.8x version of vBulletin.

But if you're like me and had That translator Mod installed and have people from different parts of the world already visiting your website, you have to do something while That Mod is getting upgraded.

Here's How...

1) Copy/paste this code into the bottom of your "header" template.

PHP Code:
<div align="right">
<
div id="google_translate_element"></div><script>
function 
googleTranslateElementInit() {
  new 
google.translate.TranslateElement({
    
pageLanguage'en'
  
}, 'google_translate_element');
}
</
script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</
div
2) Here's the official API code from google to put into your "headinclude" template.
Quote:
Including the Transliteration API on Your Page

AJAX Transliteration API is packaged under the "elements" module. To include the Google Transliteration API in your page, first you need the Google AJAX APIs script tag:

<script type="text/javascript" src="http://www.google.com/jsapi"></script>

This script tag will load the google.load function, which lets you load the individual Google APIs. For loading Google Transliteration API, calls to google.load look like this:

<script type="text/javascript">
google.load("elements", "1", {
packages: "transliteration"
});
</script>
That's a quote from google.

Here's the code again for you to copy/paste into your "headinclude" template.

PHP Code:
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<
script type="text/javascript">
  
google.load("elements""1", {
      
packages"transliteration"
  
});
</
script
Mine worked without the API, but I figure this makes it load faster and work better.
I'm no programmer/coder, but I get by with my own few little hacks and just thought some of you might like this as well until something better comes along.

Official Google resources are Here.
Code:
http://translate.google.com/translate_tools?hl=en&layout=1&eotf=1
and
Code:
http://code.google.com/apis/ajaxlanguage/documentation/#TransliterationApiLoading

Supporters / CoAuthors

    Show Your Support

    • This modification may not be copied, reproduced or published elsewhere without author's permission.
    Благодарность от:
    andro140

    Comments
      #2  
    Old 01-01-2010, 11:22 PM
    BlackJacket's Avatar
    BlackJacket BlackJacket is offline
     
    Join Date: Nov 2008
    Location: 070108111114105100100
    Posts: 364
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Thanks!
    Reply With Quote
      #3  
    Old 01-01-2010, 11:26 PM
    linuxututs linuxututs is offline
     
    Join Date: Oct 2009
    Posts: 160
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Its nothing really, but a google gadget, but it gets the job done, and its quick to.

    I'm sure alot of webmasters here no of this but just thought I'd help a few of you out who didn't.

    Thanks,
    Reply With Quote
      #4  
    Old 01-02-2010, 03:31 AM
    sebaldus sebaldus is offline
     
    Join Date: May 2008
    Location: Halden - Norway
    Posts: 80
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Thanks from me to..
    Reply With Quote
      #5  
    Old 01-03-2010, 02:19 AM
    edwinlar edwinlar is offline
     
    Join Date: Oct 2008
    Posts: 6
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    thank from melchorsito guatemala
    Reply With Quote
      #6  
    Old 01-03-2010, 06:10 AM
    KevinGupta KevinGupta is offline
     
    Join Date: Dec 2006
    Posts: 143
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    hey.. sorry but I will wait for something better... It made my website load a little slower...once I removed it .. It works just fine
    I would love to have it on my website .... but something that will not affect the loading of the website lol

    Thanks a lot for this but
    Reply With Quote
      #7  
    Old 01-03-2010, 10:49 AM
    linuxututs linuxututs is offline
     
    Join Date: Oct 2009
    Posts: 160
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    It only slows down when your actually translating a page.

    Code:
    vBulletin 4.0.0 Debug Information
    
        * Page Generation 0.74765 seconds
        * Memory Usage 33,746KB
        * Queries Executed 17
    And that's a slow page load. Usually average around the .5 area on my site....

    Thanks,
    Reply With Quote
      #8  
    Old 01-05-2010, 03:14 PM
    Vaupell's Avatar
    Vaupell Vaupell is offline
     
    Join Date: Apr 2008
    Location: Esbjerg, Denmark
    Posts: 1,036
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Thank you, like it..

    i often use google translater for other sites, manually.
    but would ofcourse offer my visitors and alternative

    rated 5
    Reply With Quote
      #9  
    Old 01-05-2010, 03:33 PM
    bandare bandare is offline
     
    Join Date: Nov 2004
    Location: Derby, UK
    Posts: 221
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Superb addition!
    Reply With Quote
      #10  
    Old 01-13-2010, 05:48 AM
    linuxututs linuxututs is offline
     
    Join Date: Oct 2009
    Posts: 160
    Благодарил(а): 0 раз(а)
    Поблагодарили: 0 раз(а) в 0 сообщениях
    Default

    Just to let everyone know, I have switched to using this Mod from NLP-er.
    Witch can be found HERE.

    This is still a Great little tool/hack, but I choose to use the other for SEO purposes.
    If not for that I'd stay with this one here.

    Thanks,
    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 11:10 AM.


    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.04916 seconds
    • Memory Usage 2,327KB
    • Queries Executed 27 (?)
    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
    • (2)bbcode_php
    • (1)bbcode_quote
    • (1)footer
    • (1)forumjump
    • (1)forumrules
    • (1)gobutton
    • (1)header
    • (1)headinclude
    • (1)modsystem_post
    • (1)navbar
    • (4)navbar_link
    • (120)option
    • (1)pagenav
    • (1)pagenav_curpage
    • (1)pagenav_pagelink
    • (10)post_thanks_box
    • (1)post_thanks_box_bit
    • (10)post_thanks_button
    • (1)post_thanks_javascript
    • (1)post_thanks_navbar_search
    • (1)post_thanks_postbit
    • (10)post_thanks_postbit_info
    • (9)postbit
    • (10)postbit_onlinestatus
    • (10)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_postinfo_query
    • fetch_postinfo
    • 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
    • fetch_musername
    • post_thanks_function_fetch_thanks_end
    • post_thanks_function_thanked_already_start
    • post_thanks_function_thanked_already_end
    • post_thanks_function_fetch_thanks_bit_start
    • post_thanks_function_show_thanks_date_start
    • post_thanks_function_show_thanks_date_end
    • post_thanks_function_fetch_thanks_bit_end
    • post_thanks_function_fetch_post_thanks_template_start
    • post_thanks_function_fetch_post_thanks_template_end
    • 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