NOOP_Translations

Provides the same interface as Translations, but doesn't do anything.

Defined (1)

The class is defined in the following location(s).

/wp-includes/pomo/translations.php  
  1. class NOOP_Translations { 
  2. var $entries = array(); 
  3. var $headers = array(); 
  4.  
  5. function add_entry($entry) { 
  6. return true; 
  7.  
  8. /** 
  9. * @param string $header 
  10. * @param string $value 
  11. */ 
  12. function set_header($header, $value) { 
  13.  
  14. /** 
  15. * @param array $headers 
  16. */ 
  17. function set_headers($headers) { 
  18.  
  19. /** 
  20. * @param string $header 
  21. * @return false 
  22. */ 
  23. function get_header($header) { 
  24. return false; 
  25.  
  26. /** 
  27. * @param Translation_Entry $entry 
  28. * @return false 
  29. */ 
  30. function translate_entry(&$entry) { 
  31. return false; 
  32.  
  33. /** 
  34. * @param string $singular 
  35. * @param string $context 
  36. */ 
  37. function translate($singular, $context=null) { 
  38. return $singular; 
  39.  
  40. /** 
  41. * @param int $count 
  42. * @return bool 
  43. */ 
  44. function select_plural_form($count) { 
  45. return 1 == $count? 0 : 1; 
  46.  
  47. /** 
  48. * @return int 
  49. */ 
  50. function get_plural_forms_count() { 
  51. return 2; 
  52.  
  53. /** 
  54. * @param string $singular 
  55. * @param string $plural 
  56. * @param int $count 
  57. * @param string $context 
  58. */ 
  59. function translate_plural($singular, $plural, $count, $context = null) { 
  60. return 1 == $count? $singular : $plural; 
  61.  
  62. /** 
  63. * @param object $other 
  64. */ 
  65. function merge_with(&$other) {