You are here

function i18n_prepare_normal_path in Internationalization 7

Normal path should be checked with menu item's language to avoid troubles when a node and it's translation has the same url alias.

2 calls to i18n_prepare_normal_path()
i18n_menu_menu_item_prepare_normal_path in i18n_menu/i18n_menu.module
Normal path should be checked with menu item's language to avoid troubles when a node and it's translation has the same url alias.
i18n_path_admin_form_validate in i18n_path/i18n_path.admin.inc
Process form validation

File

./i18n.module, line 615
Internationalization (i18n) module.

Code

function i18n_prepare_normal_path($link_path, $language) {
  $normal_path = drupal_get_normal_path($link_path, $language);
  if ($link_path != $normal_path) {
    drupal_set_message(t('The menu system stores system paths only, but will use the URL alias for display. %link_path has been stored as %normal_path', array(
      '%link_path' => $link_path,
      '%normal_path' => $normal_path,
    )));
  }
  return $normal_path;
}