uid:$locale"; cache_clear_all($cid, 'cache_menu'); // Translate all user defined meny items foreach($_menu['items'] as $mid => $item) { if($item['type'] & MENU_CREATED_BY_ADMIN) { $_menu['items'][$mid]['title'] = tt("menu:item:$mid:title", $_menu['items'][$mid]['title']); $_menu['items'][$mid]['description'] = tt("menu:item:$mid:description",$_menu['items'][$mid]['description']); } } // Update cache cache_set($cid, 'cache_menu', serialize($_menu), time() + (60 * 60 * 24)); } function i18nmenu_help($section = 'admin/help#i18nmenu' ) { switch ($section) { case 'admin/help#i18nmenu' : return t('
This module provides support for translatable custom menu items: