- This topic has 4 replies, 2 voices, and was last updated 5 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support › Forums › Sunshine Pro Theme › One Menu missing translation?
I am about to translate the theme into German.
But one of the Menus are missing the translation? please see screenshot:Top menu not translated?
as you can see the first menu does not translate? I have checked in poedit:(
Best Regards,
Jesper
That text is coming via JavaScript.
var mb_btn = '<button class="mobile-menu" id="mobile-menu" aria-pressed="false" aria-expanded="false" role="button">' +
'Menu <span class="icon ion-drag close"></span>' +
'</button>';
Okay? but how can I translate it?
Replace above code with this one
var mb_btn = '<button class="mobile-menu" id="mobile-menu" aria-pressed="false" aria-expanded="false" role="button">' +
WP.menuL10n + ' <span class="icon ion-drag close"></span>' +
'</button>';
perfect, it rocks.
Thank you for very fast response on all topics;)
Please mark as resolved.
Best Regards,
Jesper