exclude elements from translation

Popular automatic website translation tool

exclude elements from translation

Postby biselclassics » Wed Jun 13, 2012 11:10 pm

"We've installed Gtranslate Pro version on our website bisel-classics.com. It seems that we have some minor conflicts between Gtranslate and a Youtube extension(called Jusertube) that we use on our website.

We manage to identify the error and it looks that Gtranslate it's overriding the links to the popup for the YouTube videos.

Let's say we use the Greek translation. Gtranslate will add to the popup Youtube links "EL" modifying the links.

It's there a possibility to exclude the Youtube module from the translation?"

Thank you for your help
biselclassics
 
Posts: 6
Joined: Wed Jun 13, 2012 11:07 pm

Re: exclude elements from translation

Postby Yana » Thu Jun 14, 2012 12:28 am

Hi,
You can add class="notranslate" attribute.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: exclude elements from translation

Postby biselclassics » Tue Jun 19, 2012 12:12 am

Thank you very much - we will try it
biselclassics
 
Posts: 6
Joined: Wed Jun 13, 2012 11:07 pm

Re: exclude elements from translation

Postby biselclassics » Tue Jun 19, 2012 9:57 pm

Hi Yana

My developer asks me:

Where should I add the class to exclude the module from translation?"

May you give him a bit more input, please?

Best regards and Thanks

Christoph
biselclassics
 
Posts: 6
Joined: Wed Jun 13, 2012 11:07 pm

Re: exclude elements from translation

Postby Yana » Wed Jun 20, 2012 7:47 pm

Hi,
It should work with any tag.
Here is an example: <div class="notranslate"> your text </>.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: exclude elements from translation

Postby biselclassics » Tue Jun 26, 2012 7:27 pm

Hi,

my developer knows how to add a class to an HTML element, sorry but this it's not working in my case.

His problem it's like this:

I have a link like this: http://mysite.com/modules/mod_jusertube/myyoutubevideo. My pop-up window and the YouTube video it's working perfect on the default language which it's English.

After clicking on the Gtranslate module, let's say I click on German flag the website its redirected to http://mysite.com/gb

Every JURI::base() in the Jusertube module its receiving a "gb", changing every link to http://mysite.com/gb meaning that the working link http://mysite.com/modules/mod_jusertube/myyoutubevideo it's changed to http://mysite.com/gb/modules/mod_jusert ... utubevideo breaking the Jusertube pop-up and YouTube video.

What I'm trying to do, it's to somehow tell Gtranslate to not add in the translation process in our case the German language the "gb" to the Jusertube module links."
biselclassics
 
Posts: 6
Joined: Wed Jun 13, 2012 11:07 pm

Re: exclude elements from translation

Postby Yana » Tue Jun 26, 2012 7:32 pm

Hi,
You can add module class suffix notranslate.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: exclude elements from translation

Postby clicksafe » Wed Jun 27, 2012 12:36 am

does it mean when i add class="notranslate" to the header off my website that nothing will be translated?
it would be helpful, so i can decide where to force translation ... and nothing else will be translated automatically
clicksafe
 
Posts: 22
Joined: Sat Jun 23, 2012 8:11 pm
Location: Free Safe Internet Advice

Re: exclude elements from translation

Postby Yana » Wed Jun 27, 2012 12:08 pm

Hi,
Please check module options. There should be module class suffix option.
Image
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: exclude elements from translation

Postby biselclassics » Tue Jul 03, 2012 9:01 pm

Hi Yana

Unfortunately this does not work - is there any second option to solving my problem?

Best regards

Christoph
biselclassics
 
Posts: 6
Joined: Wed Jun 13, 2012 11:07 pm

Re: exclude elements from translation

Postby Yana » Tue Jul 03, 2012 10:31 pm

HI,
You should edit the source code and add class="notranslate" attribute to wrapper element.
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: exclude elements from translation

Postby biselclassics » Sun Jul 08, 2012 9:47 am

Hi Yana
Unfortunately this does not work. Maybe you may view the situation best when you go yourself on our webpage www.bisel-classics.com. Best one sees the problem when one changes the language on main page and sees the Youtube include in the bottom... some of them are displayed correctly, somes unfortunately not... Maybe you may give us any hint there?
Best regards and Thanks

Christoph
biselclassics
 
Posts: 6
Joined: Wed Jun 13, 2012 11:07 pm

Re: exclude elements from translation

Postby Yana » Thu Jul 12, 2012 7:07 pm

Hi,
Try to add the following line to your .htaccess file
RewriteRule ^([a-z]{2})/modules/mod_jusertube/(.*) /modules/mod_jusertube/$2 [R=301,L]
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm

Re: exclude elements from translation

Postby han » Wed Aug 15, 2012 8:54 pm

Yana wrote:Hi,
Try to add the following line to your .htaccess file
RewriteRule ^([a-z]{2})/modules/mod_jusertube/(.*) /modules/mod_jusertube/$2 [R=301,L]


Can you explain to me how I could use it ... to exclude a component like kenuna from being translated via a redirect ?

Right now I use two languages. English and Thai. The only part of the website I want to keep untranslated is my forum.

Thank you.
han
 
Posts: 4
Joined: Sun Jun 10, 2012 7:21 pm

Re: exclude elements from translation

Postby Yana » Mon Aug 20, 2012 4:24 pm

Hi,
In order to exclude elements from translation you should use class="notranslate" .
Regards,

Yana Ghahramanyan - 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
Yana
 
Posts: 4133
Joined: Thu Jan 12, 2012 6:21 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux