Support Forums

Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Translation the off-canvas toggler

Featured Lock Resolved Issue
Hi!

Our site is/will be multilingual so need to translate the off-canvas toggler from "Menu" to the other languages of the site. We tried to create a language override but we couldn't find the constant for it.

We found a solution via custom.css but if we use it this will apply to all the languages.

Please give us a suggestion.

Regards,

Catalin

11 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Hi,
we will improve it, in meantime , add language phrase here
templates\shaper_helix3\features\menu.php

Edit 3x title="Menu"

replace with

title="<?php echo JText::_('HELIX_MENU'); ?>"


then translate phrase
HELIX_MENU
into 2, 3 or 4 languages here

Attachments (1)

  • Languages_Overrides.png
    Languages_Overrides.png 15.6 KB

Catalin Georgescu

More than a month ago #Permalink
Hi!

Very clever solution!

Unfortunately there is something wrong since the only thing we achieved was getting rid of the "MENU" text but no translation. Please have a look at the attached file.

IMO the problem is with the HELIX_MENU string since Joomla couldn't find the constant (it is shown in the attached file) so there is nothing to display. Is it a misspelling?

Thanks,

Catalin

Attachments (1)

  • Menu translation.zip 407.8 KB

Catalin Georgescu

More than a month ago #Permalink
Hello again!

Now I understand what you meant. Your solution was meant to change only the title (the tooltip when the mouse was over the off-canvas menu symbol), right?

I didn't realize that we had an override which was writing "MENU" on the right of that symbol, I completely forgot about the tooltip thing. What I was trying was finding a solution for the "MENU" text added by the override.

Anyway, I tried your solution and, for the tooltip, it works. The only problem is that, for English we have to also create a "language override" (from English to English :) ) since without it the tooltip says "Helix Megamenu Options".

This is the override we used to have the text "MENU" shown near the symbol:

#offcanvas-toggler::after {
content: 'Menu';
text-transform: uppercase;
font-size: 12px;
font-weight: bold;
letter-spacing: 1px;
color: #000;
padding-left: 8px
}

Some of the lines are only formatting, the important stuff is content:'MENU'.

We tried to add this to menu.php but it refused to work. Can you give us a hint about how to do this in order to have the text "MENU" written on the right of the 3 horizontal lines symbol?

Thanks,

Catalin

Paul Frankowski - Staff

More than a month ago #Permalink
yes, was about title only.
---
Sorry but with deeper customization I cannot help.

Catalin Georgescu

More than a month ago #Permalink
Hi!

That's ok, we were able to add the text (fiddling a little in the php) but we saw that on a mobile device we'd have both the title and "our additional" text (you don't want to know more!).

Anyway, the idea is that your solution works, thank you once again for your kind help!

Catalin

Paul Frankowski - Staff

More than a month ago #Permalink
about tiltle="" - I will ask for official update.
But in general all our forces are focused on Helix Ultimate now.

Paul Frankowski - Staff

More than a month ago #Permalink
In tomorrow Helix3 update some WCAG changes will be introduced. Also about Menu.

Catalin Georgescu

More than a month ago #Permalink
Thank you for letting me know

Catalin Georgescu

More than a month ago #Permalink
Thanks!


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 122
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 119
Toufiq

Toufiq

Total Accepted Answers: 54
Pavel

Pavel

Total Accepted Answers: 5
M

Mel

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us