WordPress & SyntaxHighlighter Plugin

Popular automatic website translation tool

WordPress & SyntaxHighlighter Plugin

Postby dosboy » Sat Apr 23, 2011 4:48 am

It seems that GTranslate doesn't play nice with the SyntaxHighlighter (http://alexgorbatchev.com/SyntaxHighlighter/) plugin. Specifically it translates text contained within the [code] tags (which is obviously bad for code examples) and they lose their formatting.

Is there a way to tell GTranslate to ignore elements (and sub-elements) with a class of "syntaxhighlighter", or a facility to selectively ignore specific classes/IDs?

As an aside, the forum search facility here doesn't work. It always returns no results, even when searching for something like "language".
dosboy
 
Posts: 5
Joined: Sat Apr 23, 2011 4:39 am

Re: WordPress & SyntaxHighlighter Plugin

Postby Edvard » Sat Apr 23, 2011 5:49 pm

You can add class="notranslate" to the wrapper element and it will not translate.
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: 4179
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: WordPress & SyntaxHighlighter Plugin

Postby dosboy » Sun Apr 24, 2011 8:44 pm

Thank you! That was exactly what I needed.
dosboy
 
Posts: 5
Joined: Sat Apr 23, 2011 4:39 am


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux