comparison modules/locale/locale.module @ 5:2427550111ae 6.2

Drupal 6.2
author Franck Deroche <webmaster@defr.org>
date Tue, 23 Dec 2008 14:30:08 +0100
parents c1f4ac30525a
children fff6d4c8c043
comparison
equal deleted inserted replaced
4:d94886ac61a0 5:2427550111ae
1 <?php 1 <?php
2 // $Id: locale.module,v 1.212 2008/01/28 17:16:34 goba Exp $ 2 // $Id: locale.module,v 1.212.2.1 2008/04/09 21:11:48 goba Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Add language handling functionality and enables the translation of the 6 * Add language handling functionality and enables the translation of the
7 * user interface to languages other than English. 7 * user interface to languages other than English.
97 ); 97 );
98 $items['admin/settings/language/add'] = array( 98 $items['admin/settings/language/add'] = array(
99 'title' => 'Add language', 99 'title' => 'Add language',
100 'page callback' => 'locale_inc_callback', 100 'page callback' => 'locale_inc_callback',
101 'page arguments' => array('locale_languages_add_screen'), // two forms concatenated 101 'page arguments' => array('locale_languages_add_screen'), // two forms concatenated
102 'access arguments' => array('administer languages'),
102 'weight' => 5, 103 'weight' => 5,
103 'type' => MENU_LOCAL_TASK, 104 'type' => MENU_LOCAL_TASK,
104 ); 105 );
105 $items['admin/settings/language/configure'] = array( 106 $items['admin/settings/language/configure'] = array(
106 'title' => 'Configure', 107 'title' => 'Configure',
107 'page callback' => 'locale_inc_callback', 108 'page callback' => 'locale_inc_callback',
108 'page arguments' => array('drupal_get_form', 'locale_languages_configure_form'), 109 'page arguments' => array('drupal_get_form', 'locale_languages_configure_form'),
110 'access arguments' => array('administer languages'),
109 'weight' => 10, 111 'weight' => 10,
110 'type' => MENU_LOCAL_TASK, 112 'type' => MENU_LOCAL_TASK,
111 ); 113 );
112 $items['admin/settings/language/edit/%'] = array( 114 $items['admin/settings/language/edit/%'] = array(
113 'title' => 'Edit language', 115 'title' => 'Edit language',
114 'page callback' => 'locale_inc_callback', 116 'page callback' => 'locale_inc_callback',
115 'page arguments' => array('drupal_get_form', 'locale_languages_edit_form', 4), 117 'page arguments' => array('drupal_get_form', 'locale_languages_edit_form', 4),
118 'access arguments' => array('administer languages'),
116 'type' => MENU_CALLBACK, 119 'type' => MENU_CALLBACK,
117 ); 120 );
118 $items['admin/settings/language/delete/%'] = array( 121 $items['admin/settings/language/delete/%'] = array(
119 'title' => 'Confirm', 122 'title' => 'Confirm',
120 'page callback' => 'locale_inc_callback', 123 'page callback' => 'locale_inc_callback',
121 'page arguments' => array('drupal_get_form', 'locale_languages_delete_form', 4), 124 'page arguments' => array('drupal_get_form', 'locale_languages_delete_form', 4),
125 'access arguments' => array('administer languages'),
122 'type' => MENU_CALLBACK, 126 'type' => MENU_CALLBACK,
123 ); 127 );
124 128
125 // Translation functionality 129 // Translation functionality
126 $items['admin/build/translate'] = array( 130 $items['admin/build/translate'] = array(
139 'title' => 'Search', 143 'title' => 'Search',
140 'weight' => 10, 144 'weight' => 10,
141 'type' => MENU_LOCAL_TASK, 145 'type' => MENU_LOCAL_TASK,
142 'page callback' => 'locale_inc_callback', 146 'page callback' => 'locale_inc_callback',
143 'page arguments' => array('locale_translate_seek_screen'), // search results and form concatenated 147 'page arguments' => array('locale_translate_seek_screen'), // search results and form concatenated
148 'access arguments' => array('translate interface'),
144 ); 149 );
145 $items['admin/build/translate/import'] = array( 150 $items['admin/build/translate/import'] = array(
146 'title' => 'Import', 151 'title' => 'Import',
147 'page callback' => 'locale_inc_callback', 152 'page callback' => 'locale_inc_callback',
148 'page arguments' => array('drupal_get_form', 'locale_translate_import_form'), 153 'page arguments' => array('drupal_get_form', 'locale_translate_import_form'),
154 'access arguments' => array('translate interface'),
149 'weight' => 20, 155 'weight' => 20,
150 'type' => MENU_LOCAL_TASK, 156 'type' => MENU_LOCAL_TASK,
151 ); 157 );
152 $items['admin/build/translate/export'] = array( 158 $items['admin/build/translate/export'] = array(
153 'title' => 'Export', 159 'title' => 'Export',
154 'page callback' => 'locale_inc_callback', 160 'page callback' => 'locale_inc_callback',
155 'page arguments' => array('locale_translate_export_screen'), // possibly multiple forms concatenated 161 'page arguments' => array('locale_translate_export_screen'), // possibly multiple forms concatenated
162 'access arguments' => array('translate interface'),
156 'weight' => 30, 163 'weight' => 30,
157 'type' => MENU_LOCAL_TASK, 164 'type' => MENU_LOCAL_TASK,
158 ); 165 );
159 $items['admin/build/translate/edit/%'] = array( 166 $items['admin/build/translate/edit/%'] = array(
160 'title' => 'Edit string', 167 'title' => 'Edit string',
161 'page callback' => 'locale_inc_callback', 168 'page callback' => 'locale_inc_callback',
162 'page arguments' => array('drupal_get_form', 'locale_translate_edit_form', 4), 169 'page arguments' => array('drupal_get_form', 'locale_translate_edit_form', 4),
170 'access arguments' => array('translate interface'),
163 'type' => MENU_CALLBACK, 171 'type' => MENU_CALLBACK,
164 ); 172 );
165 $items['admin/build/translate/delete/%'] = array( 173 $items['admin/build/translate/delete/%'] = array(
166 'title' => 'Delete string', 174 'title' => 'Delete string',
167 'page callback' => 'locale_inc_callback', 175 'page callback' => 'locale_inc_callback',
168 'page arguments' => array('locale_translate_delete', 4), // directly deletes, no confirmation 176 'page arguments' => array('locale_translate_delete', 4), // directly deletes, no confirmation
177 'access arguments' => array('translate interface'),
169 'type' => MENU_CALLBACK, 178 'type' => MENU_CALLBACK,
170 ); 179 );
171 180
172 return $items; 181 return $items;
173 } 182 }