Forum Archive - exclude elements from translation

exclude elements from translation
Jun 13, 2012 7:10 pm by biselclassics
"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
Re: exclude elements from translation
Jun 13, 2012 8:28 pm by Yana
Hi, You can add class="notranslate" attribute.
Re: exclude elements from translation
Jun 18, 2012 8:12 pm by biselclassics
Thank you very much - we will try it
Re: exclude elements from translation
Jun 19, 2012 5:57 pm by biselclassics
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
Re: exclude elements from translation
Jun 20, 2012 3:47 pm by Yana
Hi, It should work with any tag. Here is an example: <div class="notranslate"> your text </>.
Re: exclude elements from translation
Jun 26, 2012 3:27 pm by biselclassics
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."
Re: exclude elements from translation
Jun 26, 2012 3:32 pm by Yana
Hi, You can add module class suffix notranslate.
Re: exclude elements from translation
Jun 26, 2012 8:36 pm by clicksafe
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
Re: exclude elements from translation
Jun 27, 2012 8:08 am by Yana
Hi, Please check module options. There should be module class suffix option. http://dc616.4shared.com/img/wUl2JapY/s7/0.8772492077334516/Capture_9.JPG
Re: exclude elements from translation
Jul 3, 2012 5:01 pm by biselclassics
Hi Yana Unfortunately this does not work - is there any second option to solving my problem? Best regards Christoph
Re: exclude elements from translation
Jul 3, 2012 6:31 pm by Yana
HI, You should edit the source code and add class="notranslate" attribute to wrapper element.
Re: exclude elements from translation
Jul 8, 2012 5:47 am by biselclassics
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
Re: exclude elements from translation
Jul 12, 2012 3:07 pm by Yana
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]
Re: exclude elements from translation
Aug 15, 2012 4:54 pm by han
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.
Re: exclude elements from translation
Aug 20, 2012 12:24 pm by Yana
Hi, In order to exclude elements from translation you should use class="notranslate" .

SIMILAR TOPICS

German translation changes the centuryDec 31, 2018 3:06 pmReplies: 1Post by: adrievdl
Graphic translation for every language is missingDec 19, 2018 7:54 amReplies: 1Post by: Daryl Dixon
Problem of translation in my websiteDec 8, 2018 12:15 pmReplies: 1Post by: Ibrahim
translation works only with ctrl + f5 in browser help pleaseNov 15, 2018 1:10 pmReplies: 1Post by: milangomes
How to activate neural translationMar 30, 2018 1:53 pmReplies: 5Post by: 5hamm

Try GTranslate with a free 15 day trial