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