You are here

function i18n_string_menu_alter in Internationalization 7

Implements hook_menu_alter().

Take over the locale translation page.

File

i18n_string/i18n_string.module, line 147
Internationalization (i18n) package - translatable strings.

Code

function i18n_string_menu_alter(&$items) {
  $items['admin/config/regional/translate/edit/%'] = array(
    'title' => 'Edit string',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'i18n_string_locale_translate_edit_form',
      5,
    ),
    'access arguments' => array(
      'translate interface',
    ),
    'file' => 'i18n_string.pages.inc',
    'file path' => drupal_get_path('module', 'i18n_string'),
  );
  $items['admin/config/regional/translate/translate'] = array(
    'title' => 'Translate',
    'weight' => 10,
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'i18n_string_locale_translate_seek_screen',
    'access arguments' => array(
      'translate interface',
    ),
    'file' => 'i18n_string.pages.inc',
    'file path' => drupal_get_path('module', 'i18n_string'),
  );
}