Don't translate menu text
Jul 13, 2011 1:43 pm by pmarcus81
Jul 13, 2011 1:43 pm by pmarcus81
Hello,
I know I can stop translating text in articles bij putting <span class="notranslate"></span> around it. But how do i stop translating menu text?
The problem is that i have a menu with all kinds of car brands, Ford, Alfa Romeo, Fiat, and...... Smart and Seat. Smart and Seat are English words, so it's to be translated and I don't want that.
Hope to hear from you soon,
Gr. Paul.
Re: Don't translate menu text
Jul 14, 2011 10:43 am by Edvard
Jul 14, 2011 10:43 am by Edvard
The solution is the same, you need to add class="notranslate" to your menu wrapper tag.
Re: Don't translate menu text
Jul 14, 2011 1:10 pm by pmarcus81
Jul 14, 2011 1:10 pm by pmarcus81
Can you be more specific? I can't find a menu wrapper tag. I use Joomla 1.6...
Is it Custom CSS Class maybe?
Re: Don't translate menu text
Jul 15, 2011 10:34 am by Edvard
Jul 15, 2011 10:34 am by Edvard
Most likely you need to edit your template file.
Re: Don't translate menu text
Jul 15, 2011 11:13 am by pmarcus81
Jul 15, 2011 11:13 am by pmarcus81
My menu item has a field for Custom CSS Class. When I pun notranslate there, it works!
My next problem is that article names are translated also. Where do I put a notranslate to stop the article name from being translated?
Re: Don't translate menu text
Jul 15, 2011 11:36 am by Edvard
Jul 15, 2011 11:36 am by Edvard
That need to be changed from the template. If you already have override for com_content then it will be easy, otherwise you need to create an override for com_content component.
SIMILAR TOPICS
Onloading the plugin quickly flashes up flags and text names | Feb 7, 2019 3:29 pm | Replies: 1 | Post by: brobertson |
wordpress amp link not translate | Dec 31, 2016 10:11 am | Replies: 12 | Post by: besybuy |
Translate website to any specific language, on page load | Jan 19, 2019 6:49 am | Replies: 1 | Post by: Leaon7756 |
Best way to translate a page in WordPress? | Jan 7, 2019 11:10 am | Replies: 3 | Post by: Tonnystark |
how to translate site right to left for arabic in WordPress | Dec 26, 2018 9:02 am | Replies: 1 | Post by: Hammond753 |