You are here

function i18n_path_i18n_translate_path in Internationalization 7

Implements hook_i18n_translate_path()

File

i18n_path/i18n_path.module, line 124
Internationalization (i18n) module - Path translation

Code

function i18n_path_i18n_translate_path($path) {
  if ($translations = i18n_path_get_translations($path)) {
    $result = array();
    foreach ($translations as $langcode => $translated) {
      $result[$langcode] = array(
        'href' => $translated,
      );
    }
    return $result;
  }
}