Comments (8)
That's really strange, it didn't work for me either but after reloading the
page it worked as
it should then stopped working again.
Could you please include the non-minified version of the plugin?
Here's a quick fix until then:
$('#sog1_trans_en').translate("da","en",{fromOriginal:false, toggle:false,
complete:
function(el){
el.val(el.data("translation").en.value);
}})
Original comment by balazs.endresz
on 22 Apr 2010 at 2:15
- Changed state: Accepted
from jquery-translate.
Did you get it to work more than once without reloading the page??
I'll include the non-minofied tomorrow, and post here when itøs done.
By the way - impressive response-time!! Thanks!! :)
Original comment by pierre.husted
on 22 Apr 2010 at 3:00
from jquery-translate.
I've included the non-minified version instead.
Made a new page with your fix - and it WORKS! :)
http://dev.scanpix.eu/spdk/index_translate_eksperiment2.pl
My first test-page is still there, if you want to have a look
http://dev.scanpix.eu/spdk/index_translate_eksperiment.pl
Let me know (here) if you fix the problem in a future release.
Otherwise I'll use your fix.
Thanks again!!
Original comment by pierre.husted
on 23 Apr 2010 at 1:14
from jquery-translate.
The problem is that if the new translation has the same language as the
previous one then the value
won't be replaced and the `$.translate.replace` functions returns earlier.
I'll add an option for this in the next release sometime, because usually this
is a good thing, but
in this case it's certainly not.
If you just remove this:
if(lang === to)
return;
from that function then it works!
And, btw, in such a simple case, you don't have to include the
`nodesContainingText` module, the one
called `nct-adapter` with the `core` works without it as well (or at least I
hope it still does :).
Original comment by balazs.endresz
on 23 Apr 2010 at 2:20
from jquery-translate.
The fix works great.
And not including nodesContainingText boosted the speed quite a bit.
Thanks a lot once mote.
Great help, great module!!
Original comment by pierre.husted
on 26 Apr 2010 at 11:31
from jquery-translate.
Original comment by balazs.endresz
on 19 Aug 2010 at 8:10
- Added labels: Priority-High
- Removed labels: Priority-Medium
from jquery-translate.
Fixed in v1.4.7, so now on you can just set the `alwaysReplace` option to true.
Original comment by balazs.endresz
on 20 Aug 2010 at 8:26
- Changed state: Fixed
from jquery-translate.
Issue 58 has been merged into this issue.
Original comment by balazs.endresz
on 29 Nov 2010 at 4:06
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.