Support » Plugins » [Plugin: Google AJAX Translation] “Error: jQuery(a).translate is not a function”

  • When I tried to use the Google AJAX Translation plugin (installation is completed successfully, I can see the Translate button on my blog and the popup window with all the language), the text does not get translated and I get a Javascript error in the Firefox Error Console:

    Error: jQuery(a).translate is not a function
    Source File: http://mywebsite/blog/wp-content/plugins/google-ajax-translation/jquery.translate-1.3.9.min.js?ver=1.3.9
    Line: 10

    The “jQuery(A).translate is not a function” error is caused because of a name conflict within jQuery. My blog already has other plugins with their own copy of jQuery, and therefore since the Javascript naming is global, there is a conflict.

    There is a way to fix this naming problem according to

    The code should look like

    <script src=”prototype.js”></script>
    <script src=”jquery.js”></script>

    //notice, that the $sign has been replaced with the word jQuery
    // And you can use Prototype with $(…)

  • The topic ‘[Plugin: Google AJAX Translation] “Error: jQuery(a).translate is not a function”’ is closed to new replies.