Coder Social home page Coder Social logo

Comments (11)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Seems like clearing the browser cache makes it translate again (once), but 
fails at
any page refresh

Original comment by [email protected] on 24 Mar 2010 at 2:08

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
I have been experiencing the same issue.

Works fine for the initial translation. Any subsequent return visits to the 
same 
page, it requires clearing the browser cache for the tranlate to work again. 
Only in 
IE with inPrivate mode enabled(8.0 and compatability mode).

Interestingly, I went back to the same locally hosted pages in IE without 
inPrivate 
mode enabled, and they seemed to work fine - without needing to clear the cache.

Hope this helps.

Original comment by [email protected] on 26 Mar 2010 at 1:06

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
I have had this problem too, been trying all kinds of different, cache-related 
things.

I was able to produce a solution thanks to the following topic:
http://groups.google.com/group/Google-AJAX-Search-API/msg/1d2c4cff9de4b9b3?pli=1

Under the script tags of jquery and jquery.translate, you should add the 
following:
<!--[if IE]>
<script src="http://www.google.com/jsapi?callback=$.translate.load"
type="text/javascript"></script>
<![endif]-->

I Used jQuery 1.4.2 and jQuery Translate 1.4.5 at last.

Original comment by [email protected] on 26 Mar 2010 at 1:25

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Sorry for the delay, I'm just looking into it. Strangely my test pages don't 
work 
either, which I used a couple of weeks ago.

Original comment by balazs.endresz on 26 Mar 2010 at 1:29

  • Changed state: Accepted
  • Added labels: Priority-Critical
  • Removed labels: Priority-Medium

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
If that still does not work, you could also try the $.translate( function() {} 
); like:

<script type="text/javascript">
$(function() { // On DOM ready
    $.translate(function() { // On Google API Ready
        $(".abc").translate("no","en",{});
    });
});
</script>

Original comment by [email protected] on 26 Mar 2010 at 1:40

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
This is where the problem is:

google.load("language", "1", {"callback" : loaded});

here `loaded` is a function that should be fired when the Language API loads 
but apparently 
it isn't. Calling $.translate.load() afterwards calls the above line again, but 
then the 
`loaded` function fires properly. That's why flamefingers' solution above 
works, though a 
simple timeout would be enough as well.

So, it pretty much looks like it's a bug in the Language API.

Original comment by balazs.endresz on 26 Mar 2010 at 2:10

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
@flamefingers: I've read that discussion but quite frankly I can't really 
follow it, so 
I'm not sure it's related. It was quite a long time ago, and since then there 
wasn't 
any issues with loading the scripts. Also there were some other issues with the 
Language API that has been fixed in the following months. 

Original comment by balazs.endresz on 26 Mar 2010 at 2:19

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
[deleted comment]

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
http://code.google.com/p/google-ajax-apis/issues/detail?id=410

Original comment by balazs.endresz on 26 Mar 2010 at 6:08

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Thanks for all the responses!
The $.translate workaround does indeed seem to work.

Original comment by [email protected] on 6 Apr 2010 at 7:31

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
Now it seems to work fine for me, please reopen this ticket if you still see 
this issue!

Original comment by balazs.endresz on 29 Jun 2010 at 12:34

  • Changed state: Fixed

from jquery-translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.