Coder Social home page Coder Social logo

Comments (3)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
I'm not sure I can follow this, but if you change the content after a 
translation then 
you have to set some options to false (`fromOriginal`, `toggle` or `data` too) 
for that 
region because the translation is stored with $.data and by default it won't 
translate 
that region again, just get the translation from $.data.

Original comment by balazs.endresz on 13 Feb 2010 at 9:35

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
$(i_section).translate("sv", "en", {
                returnAll: true,
                walk: false,
                not: "a",
                fromOriginal: false,
                toggle: false,
                data: false,
                subject: false,
                start: function() { $("#langCtrl").prepend("<span
style=\"color:#f00;\">Translating... Please wait!</span>"); },
                complete: function() { 
                    alert("translated");
                    $( $("#langCtrl").children()[0] ).remove();
                }
            });

it translates once, then never more with those options.


Original comment by [email protected] on 26 May 2010 at 3:04

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 12, 2024
$(i_section).translate("sv", "en", {
                alwaysReplace: true
                returnAll: true,
                walk: false,
                not: "a",
                fromOriginal: false,
                toggle: false,
                data: false,
                subject: false,
                start: function() { $("#langCtrl").prepend("<span
style=\"color:#f00;\">Translating... Please wait!</span>"); },
                complete: function() { 
                    alert("translated");
                    $( $("#langCtrl").children()[0] ).remove();
                }
            });

set alwaysReplace to true

Original comment by [email protected] on 14 Feb 2012 at 9:21

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.