rte_words.lib.php 2.2 KB

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