Forum Archive - Keep parts of posts not translated

Keep parts of posts not translated
Aug 4, 2012 11:20 pm by chris
Hi! I have tried googling this as well as searching these forums, but I guess I'm not too good at it so I'm hoping you guys can help me out. I have a wordpress blog with Gtranslate pro. Everything is up and working OK so far. (Sometimes the posts don't get translated until I've refreshed the page a couple of times, but that's another issue.) My biggest issue is that Gtranslate translates part of my posts that are written code. As in example code showing users how to execute a set of commands, parts of a script or the like. Is there any way of telling Gtranslate not to translate those parts? Please see the following example, and thanks :) http://s8.postimage.org/tdyb29ilv/lostintranslation.png
Re: Keep parts of posts not translated
Aug 5, 2012 2:17 pm by Yana
Hi, You can use claass="notranslate" attribute. It should work with any tag. Here is an example <div class="notranslate"> your text </div>
Re: Keep parts of posts not translated
Aug 5, 2012 3:28 pm by chris
Great! Thank you. Also, do you have any tips on speeding gtranslate up? Even after a page is catched, it still takes twice as long to access a gtranslated page as it does a normal page.
Re: Keep parts of posts not translated
Aug 6, 2012 3:54 pm by Yana
Hi, First load is always slow. It will become faster over time when the cache grows.Please check if your gtranslate/cache is growing. Make sure that you have files in gtranslate/cache/xx directories.

SIMILAR TOPICS

Add links to all translated posts on every Wordpress postJan 14, 2019 8:51 pmReplies: 5Post by: ptsniper
Combining manually translated French pages with GTranslateOct 16, 2018 2:24 pmReplies: 3Post by: oxygensmith
translated page not foundnPage not foundJan 22, 2018 6:17 pmReplies: 8Post by: smileexcursions
Using the nontranslate tag for some parts of the siteNov 12, 2017 9:10 amReplies: 2Post by: m2ecomm
Home not being translated and showing old oneSep 23, 2017 12:40 amReplies: 2Post by: electroya

Try GTranslate with a free 15 day trial