Comments (6)
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.
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.
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.
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.
Great - thanks! That did the trick.
Original comment by [email protected]
on 7 Jan 2010 at 2:07
from jquery-translate.
Original comment by balazs.endresz
on 7 Jan 2010 at 2:15
- Changed state: Done
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.