problem with <span class="notranslate"></span>

Popular automatic website translation tool

problem with <span class="notranslate"></span>

Postby carstene » Mon Dec 13, 2010 11:15 am

I'm using this wonderfull plugin on a site where i also display code. You guessed it, the code also gets translated, which is not what I want. So I put the classname in the div around the code, but it is still translating. I tested the classname in the span, and that seems to work, but not in this plugin (which probably also works with jQuery). Is this classname also supose to work when used on other elements? (When using a span and the content contains div and p then the code is not valid html).

this is the plugin to display code real nice:
http://extensions.joomla.org/extensions ... F0aW9uIjt9

I tried to play around with the plugin order, to make sure the code-plugin gets processed first (to add the classname), but this is a module and I can't set the order of loading.

Any ideas?
carstene
 
Posts: 4
Joined: Sun Dec 12, 2010 10:00 pm

Re: problem with <span class="notranslate"></span>

Postby Edvard » Mon Dec 13, 2010 1:59 pm

It supposed to work with any tag. You can use <div class="notranslate"></div> instead.

Can I see it on your site?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: problem with <span class="notranslate"></span>

Postby carstene » Mon Dec 13, 2010 2:48 pm

Can I see it on your site?

yes, its in the code. but the problem seems to be that other plugin jQueries the code layout and gtranslate has already altered the content. In joomla, gTranslate should be a system plugin which should be triggered on the onAfterRender-event. And it could even do the whole thing serverside.
To display the select the module is fine.
carstene
 
Posts: 4
Joined: Sun Dec 12, 2010 10:00 pm

Re: problem with <span class="notranslate"></span>

Postby Edvard » Mon Dec 13, 2010 3:01 pm

So how do I test it on your site? Where is the URL?
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4186
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: problem with <span class="notranslate"></span>

Postby carstene » Mon Dec 13, 2010 5:13 pm

o, like that. No its a development server. No public access. You can download and install the module to see what I mean.
carstene
 
Posts: 4
Joined: Sun Dec 12, 2010 10:00 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron