Page 1 of 1

I don't want my menu translated - how do I do that?

Posted: Fri Apr 13, 2012 7:49 pm
by Evangeline93
I am using Joomla 2.5 and am using the GTranslate extension to give my site more versatility to visitors. I have my main menu buttons fitted with graphic, just the way I want them, but the buttons give unsightly results when the translator makes the menu buttons longer than the fitted CSS image.

Is there a way to make the main menu immune to the translator? I would much rather have the rest of the site translated and leave the buttons alone, for aesthetic purposes.

If anybody has a solution, I would be very grateful! I am hoping I don't have to just add the button name to the graphic, as I want the button name to show up even if the CSS image doesn't load.

Thank you very much! Here is a link to the site I am building, so you can see me buttons and the translator (at the bottom): http://nlc.despaindesigns.com

Have a nice day!
Jennifer :geek:

Re: I don't want my menu translated - how do I do that?

Posted: Fri Apr 13, 2012 8:05 pm
by brian
There is a brand new html5 tag called translate. The only people using it right now are google and bing translate

So If I write a sentence like this and put <span translate=no>leave me alone</span> then anything inside the span will be ignored by the translators

So I guess you could look at somehow wrapping the content of the menu items inside that tag

Re: I don't want my menu translated - how do I do that?

Posted: Fri Apr 13, 2012 8:51 pm
by Evangeline93
I just tried using that idea. My page is built using XHTML, though. Could that be an issue with using HTML5 tags? Hmmm.....

This is what I have around the menu:

<span translate="no">
<?php if ($this->countModules('menu')) : ?>

<div id="navr"><div id="navl"><div id="nav">

<jdoc:include type="modules" name="menu" style="none" />

</div></div></div>

</span>

Thank you for your help. Is there something I am missing, perhaps?

I had heard that HTML5 was not being widely used quite yet. Perhaps FireFox isn't recognizing it?

Jennifer :geek:

Re: I don't want my menu translated - how do I do that?

Posted: Fri Apr 13, 2012 8:53 pm
by brian
As I said the browser itself wont do anything with the tag but the translation tools (which is what gtranslate uses) do

I think you will need to find a way to put the span around the individual items not the entire block

Re: I don't want my menu translated - how do I do that?

Posted: Fri Apr 13, 2012 9:28 pm
by Evangeline93
Thank you! I will try that!

Jennifer :geek:

Re: I don't want my menu translated - how do I do that?

Posted: Wed Mar 13, 2013 10:01 am
by irantamir
hi pensiunearad
is it work in IE7??

Re: I don't want my menu translated - how do I do that?

Posted: Sun Jul 27, 2014 7:43 pm
by termino
irantamir wrote:hi pensiunearad
is it work in IE7??
I have tested this version and it worked

Re: I don't want my menu translated - how do I do that?

Posted: Wed Aug 06, 2014 10:10 am
by dadset
it didnt work with IE 6 only
and with IE 7,8,9 work corectly

Re: I don't want my menu translated - how do I do that?

Posted: Mon Sep 01, 2014 3:34 pm
by waarnemer
@Brian, thanks..

That was valuable info you provided.. the page a W3Schools says no browser supports it, but it actually is the GTranslator doing it... w3schools should change all no's into yes's...

Thanks again..