How to Prevent Translating by Module

Popular automatic website translation tool

How to Prevent Translating by Module

Postby kefford » Wed May 07, 2014 1:24 am

Hi,

I am testing with gTranslate FREE before buying the PRO version. I am using a lot of data tables in my website that are using a module to pull data from an external database and display. I want to prevent gTranslate from translating anything from this module. As I test i am finding it is attempting to translate things that it should not be, like company names, regulatory standards, etc. I see that you can prevent text from being translating by wrapping it, but this will be very time consuming to implement for the complex queries used to pull the information. Any suggestions based on how others have used gTranslate? Can gTranslate support what I am asking? Thanks.

Ken
kefford
 
Posts: 51
Joined: Wed May 07, 2014 1:16 am

Re: How to Prevent Translating by Module

Postby kefford » Wed May 07, 2014 3:19 am

Thanks, but i answered myself. If you load the module inside an article with just as an example {load module} you can prevent all translations of the results of the module by using Sourcerer (by NoNumber) and wrapping the module call as follows,

{source}<span class="notranslate">{load module}</span>{/source}
kefford
 
Posts: 51
Joined: Wed May 07, 2014 1:16 am

Re: How to Prevent Translating by Module

Postby Edvard » Wed May 07, 2014 12:09 pm

Hi,

Whatever you do not want to be translated you need to wrap it with a tag with class="notranslate" attribute or add notranslate attribute if there is already a wrapper tag.

Thanks!
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: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron