Open GoogleCodeExporter opened 9 years ago
Sorry, but without seeing the actual page I can't say too much. You can email
it to me if it's not public.
Original comment by balazs.endresz
on 24 Sep 2011 at 2:38
Thank you for such a quick reply.
http://realcorp.pl/translate/
I made a static copy of an example page from the site. Stripped down all the
CSS and JS.
The original site is Joomla! generated, but I don't think that has anything to
do with the issue, since inside Joomla! the problem is exactly the same - only
header of te table gets translated.
Original comment by jacek.ko...@dyrygent.pl
on 24 Sep 2011 at 2:46
This issue has already come up before, it looks like haven't fixed it yet. The
< signs cause some problems because the plugin needs to detect if there's some
broken html tags in the text because then it has to be cut before those, in
order to stay below the per request character limit. Now that's actually more
complicated than it sounds, and I couldn't find a way around it yet.
For your page something like this should work though:
jQuery(".auction_price_bold").each(function(){
var $this = jQuery(this);
$this.text( $this.text().replace("<","") );
});
jQuery("body").translateTextNodes("pl", "en", function(){
jQuery(".auction_price_bold").each(function(){
var $this = jQuery(this);
$this.text( "<" + $this.text() );
});
});
or maybe just this:
jQuery("body").translate("pl", "en", {not:".auction_price_bold"});
But there's an exception thrown, and I don't why because the JavaScript is
minified on the page!
Original comment by balazs.endresz
on 24 Sep 2011 at 4:53
Thank you very much! It's a lifesaver.
Original comment by jacek.ko...@dyrygent.pl
on 26 Sep 2011 at 9:04
Original issue reported on code.google.com by
jacek.ko...@dyrygent.pl
on 24 Sep 2011 at 1:50