[ Index ] |
PHP Cross Reference of YOURLS |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * This file is part of the POMO package. 5 * 6 * @copyright 2014 POMO 7 * @license GPL 8 */ 9 10 namespace POMO\Translations; 11 12 /** 13 * Provides the same interface as Translations, but doesn't do anything. 14 */ 15 class NOOPTranslations implements TranslationsInterface 16 { 17 public $entries = array(); 18 public $headers = array(); 19 20 public function add_entry($entry) 21 { 22 return true; 23 } 24 25 public function set_header($header, $value) 26 { 27 } 28 29 public function set_headers($headers) 30 { 31 } 32 33 public function get_header($header) 34 { 35 return false; 36 } 37 38 public function translate_entry(EntryTranslations &$entry) 39 { 40 return false; 41 } 42 43 public function translate($singular, $context = null) 44 { 45 return $singular; 46 } 47 48 public function select_plural_form($count) 49 { 50 return 1 == $count ? 0 : 1; 51 } 52 53 public function get_plural_forms_count() 54 { 55 return 2; 56 } 57 58 public function translate_plural( 59 $singular, 60 $plural, 61 $count, 62 $context = null 63 ) { 64 return 1 == $count ? $singular : $plural; 65 } 66 67 public function merge_with(TranslationsInterface &$other) 68 { 69 } 70 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Jan 21 05:10:11 2025 | Cross-referenced by PHPXref 0.7.1 |