Coder Social home page Coder Social logo

Comments (8)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024

Original comment by balazs.endresz on 19 Aug 2010 at 8:10

  • Added labels: Priority-High
  • Removed labels: Priority-Medium

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
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)

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.