Comments (11)
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.
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.
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.
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.
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.
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.
@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.
[deleted comment]
from jquery-translate.
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.
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.
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)
- Bing won't translate HOT 5
- bing translator and non-well-formed html HOT 24
- support for Google v2 API HOT 25
- Line 462 in Code Trunk Bug. from should be form HOT 1
- How to Remove Openning and Clsong div's in Translate Method Call HOT 1
- the // in http:// is interpreted as comment-line HOT 1
- The Translator is currently not translating anything. HOT 1
- Bing API ID Throwing Error HOT 4
- By setting parallel parameter to true doesn't work, is still working as parallel: false HOT 1
- getting error while loading bingAPI HOT 2
- Uncaught TypeError: Cannot call method 'replace' of undefined HOT 1
- Some fix for correct work with BING HOT 3
- No works for me and no translation , Can you help me please ?
- google.language.callbacks issue(?) HOT 1
- (414) Request-URI Too Large for content length > 2K characters
- Infinite loop when translating certain html
- new fix for use class notranslate
- Patch for /tags/1.4.1/src/jquery.translate-core.js
- Won't Work in Firefox or Chrome on Windows
- Provide a code sample of how to load the plugin
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-translate.