Coder Social home page Coder Social logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
Since this plugin doesn't discriminate elements based on a specific CSS query 
there must be 
something else causing this issue, which I'd happily help solving but I'd need 
some relevant 
information to do that, for example the actual website or at least some part of 
the markup. 
If it's not public please feel free to contact me in email: 
[email protected]

Original comment by balazs.endresz on 5 Jan 2010 at 5:21

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
Thanks Balazs - you can have a look at http://se.korneel.com. There are 
elements with 
a .post-tag class that I want to translate. The jQuery is below.

$(document).ready(function(){

  // other stuff

  //$('a').translate('ar'); // works
  $('.post-tag').css('color','#4253ea'); // for reference to check that selector is 
working
  $('.post-tag').translate('ar'); // does not work

});

Thanks!

Original comment by [email protected] on 6 Jan 2010 at 3:36

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
Update: The above seems to only hold true for the homepage - on all other pages 
the 
translation does work. I have no idea why...

Original comment by [email protected] on 6 Jan 2010 at 10:46

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
If you use the `error` callback, it says that it "could not reliably detect 
source 
language":

$('.post-tag').translate('ar',{ error:function(e){ console.log(e.message) } });

Specifying a source language should fix this:

`$('.post-tag').translate('en', 'ar')`

Original comment by balazs.endresz on 7 Jan 2010 at 10:11

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024
Great - thanks! That did the trick.

Original comment by [email protected] on 7 Jan 2010 at 2:07

from jquery-translate.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 3, 2024

Original comment by balazs.endresz on 7 Jan 2010 at 2:15

  • Changed state: Done

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.