Révision 2157f5a8
Ajouté par Assos Assos il y a presque 6 ans
drupal7/sites/all/modules/i18n/i18n_menu/i18n_menu.module | ||
---|---|---|
62 | 62 |
* @param $variables |
63 | 63 |
*/ |
64 | 64 |
function i18n_menu_preprocess_menu_admin_overview(&$variables) { |
65 |
$variables['title'] = i18n_string(array('menu', 'menu', $variables['name'], 'title'), $variables['title']); |
|
66 |
$variables['description'] = i18n_string(array('menu', 'menu', $variables['name'], 'description'), $variables['description']); |
|
65 |
$variables['title'] = i18n_string(array('menu', 'menu', $variables['name'], 'title'), $variables['title'], array('sanitize' => FALSE));
|
|
66 |
$variables['description'] = i18n_string(array('menu', 'menu', $variables['name'], 'description'), $variables['description'], array('sanitize' => FALSE));
|
|
67 | 67 |
} |
68 | 68 |
|
69 | 69 |
/** |
... | ... | |
522 | 522 |
function _i18n_menu_link_description($link, $langcode = NULL) { |
523 | 523 |
if (!empty($link['options']['attributes']['title'])) { |
524 | 524 |
$key = i18n_object_info('menu_link', 'key'); |
525 |
return i18n_string_translate(array('menu', 'item', $link[$key], 'description'), $link['options']['attributes']['title'], array('langcode' => $langcode)); |
|
525 |
return i18n_string_translate(array('menu', 'item', $link[$key], 'description'), $link['options']['attributes']['title'], array('langcode' => $langcode, 'sanitize' => FALSE));
|
|
526 | 526 |
} |
527 | 527 |
else { |
528 | 528 |
return NULL; |
Formats disponibles : Unified diff
Weekly update of contrib modules