function locale_menu

Implements hook_menu().

File

drupal/core/modules/locale/locale.module, line 180
Enables the translation of the user interface to languages other than English.

Code

function locale_menu() {

  // Translation functionality.
  $items['admin/config/regional/translate'] = array(
    'title' => 'User interface translation',
    'description' => 'Translate the built-in user interface.',
    'page callback' => 'locale_translate_page',
    'access arguments' => array(
      'translate interface',
    ),
    'file' => 'locale.pages.inc',
    'weight' => -5,
  );
  $items['admin/config/regional/translate/translate'] = array(
    'title' => 'Translate',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/config/regional/translate/import'] = array(
    'title' => 'Import',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'locale_translate_import_form',
    ),
    'access arguments' => array(
      'translate interface',
    ),
    'weight' => 20,
    'type' => MENU_LOCAL_TASK,
    'file' => 'locale.bulk.inc',
  );
  $items['admin/config/regional/translate/export'] = array(
    'title' => 'Export',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'locale_translate_export_form',
    ),
    'access arguments' => array(
      'translate interface',
    ),
    'weight' => 30,
    'type' => MENU_LOCAL_TASK,
    'file' => 'locale.bulk.inc',
  );
  $items['admin/config/regional/translate/settings'] = array(
    'title' => 'Settings',
    'route_name' => 'locale_settings',
    'access arguments' => array(
      'translate interface',
    ),
    'weight' => 100,
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/reports/translations'] = array(
    'title' => 'Available translation updates',
    'description' => 'Get a status report about available interface translations for your installed modules and themes.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'locale_translation_status_form',
    ),
    'access arguments' => array(
      'translate interface',
    ),
    'file' => 'locale.pages.inc',
  );
  $items['admin/reports/translations/check'] = array(
    'title' => 'Manual translation update check',
    'page callback' => 'locale_translation_manual_status',
    'access arguments' => array(
      'translate interface',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'locale.pages.inc',
  );
  return $items;
}