Fixed: Not selecting a datalabel used to issue a notice(undefined offset)
[phpmyadmin/ammaryasirr.git] / libraries / rte / rte_words.lib.php
blobe046ac27c32fb9c981530a0410a894cf4b5dcb9b
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * This function is used to retreive some language strings that are used
5 * in functionalities that are common to routines, triggers and events.
7 * @param string $index The index of the string to get
9 * @return string The requested string or an empty string, if not available
11 function PMA_RTE_getWord($index)
13 global $_PMA_RTE;
15 switch ($_PMA_RTE) {
16 case 'RTN':
17 $words = array(
18 'add' => __('Add routine'),
19 'docu' => 'STORED_ROUTINES',
20 'export' => __('Export of routine %s'),
21 'human' => __('routine'),
22 'no_create' => __('You do not have the necessary privileges to create a routine'),
23 'not_found' => __('No routine with name %1$s found in database %2$s'),
24 'nothing' => __('There are no routines to display.'),
25 'title' => __('Routines'),
27 break;
28 case 'TRI':
29 $words = array(
30 'add' => __('Add trigger'),
31 'docu' => 'TRIGGERS',
32 'export' => __('Export of trigger %s'),
33 'human' => __('trigger'),
34 'no_create' => __('You do not have the necessary privileges to create a trigger'),
35 'not_found' => __('No trigger with name %1$s found in database %2$s'),
36 'nothing' => __('There are no triggers to display.'),
37 'title' => __('Triggers'),
39 break;
40 case 'EVN':
41 $words = array(
42 'add' => __('Add event'),
43 'docu' => 'EVENTS',
44 'export' => __('Export of event %s'),
45 'human' => __('event'),
46 'no_create' => __('You do not have the necessary privileges to create an event'),
47 'not_found' => __('No event with name %1$s found in database %2$s'),
48 'nothing' => __('There are no events to display.'),
49 'title' => __('Events'),
51 break;
52 default:
53 $words = array();
54 break;
57 return isset($words[$index]) ? $words[$index] : '';
58 } // end PMA_RTE_getWord()