Révision fc3d89c3
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/i18n/i18n_menu/i18n_menu.module | ||
---|---|---|
180 | 180 |
// We just make sure every link has a valid language property. |
181 | 181 |
if (!i18n_object_langcode($item)) { |
182 | 182 |
$item['language'] = LANGUAGE_NONE; |
183 |
$item['i18n_tsid'] = 0; |
|
183 | 184 |
} |
184 | 185 |
} |
185 | 186 |
|
... | ... | |
515 | 516 |
* Check whether this link is to be processed by i18n_menu and start processing. |
516 | 517 |
*/ |
517 | 518 |
function _i18n_menu_link_process(&$link) { |
518 |
// Only visible links that have a language property and haven't been processed |
|
519 |
// before. We also check that they belong to a menu with language options. |
|
520 |
if (empty($link['i18n_menu']) && !empty($link['language']) && !empty($link['access']) && empty($link['hidden']) && i18n_menu_mode($link['menu_name'])) { |
|
519 |
// Only links that have a language property and haven't been processed before. |
|
520 |
// We also translate links marked as hidden because core breadcrumbs ignore |
|
521 |
// that flag and excluding them would basically interfere with core behaviour. |
|
522 |
// We also check that they belong to a menu with language options. |
|
523 |
if (empty($link['i18n_menu']) && !empty($link['language']) && !empty($link['access']) && i18n_menu_mode($link['menu_name'])) { |
|
521 | 524 |
// Mark so it won't be processed twice. |
522 | 525 |
$link['i18n_menu'] = TRUE; |
523 | 526 |
// Skip if administering this menu or this menu item. |
Formats disponibles : Unified diff
Weekly update of contrib modules