How to translate the word Menu ? t('Menu') (after class="tb-main-menu-button ...) doesn't work in this case.

if($menu_bar = render($page['menu_bar'])): ?>
<!-- MAIN NAV -->
<div id="menu-bar-wrapper" class="wrapper">
<div class="container <?php print $grid; ?>">
<div class="grid-inner clearfix">
<a title="Navigation Icon" href="javascript:void(0);" class="tb-main-menu-button responsive-menu-button">Menu</a>
<?php print $menu_bar; ?>
  • where is this snippet ( which file) ? did you try to put t('Menu') in another place? are you sure you translate it ?
    – Yuseferi
    Jul 14, 2016 at 6:33
  • Did you add <?php ?> ?
    – Jimmy Ko
    Jul 14, 2016 at 8:25
  • Menu is right there after class="tb-main-menu-button responsive-menu-button"> I tried to put t('Menu') but it doesn't work in the class. What should be done? Jul 14, 2016 at 8:54

1 Answer 1


Try: <?php print t('Menu') ?>

Like so:

<a title="Navigation Icon" href="javascript:void(0);" class="tb-main-menu-button responsive-menu-button"><?php print t('Menu') ?></a>

This will make the string translatable in the admin interface.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.