1 | <?php |
||
26 | class Language |
||
27 | { |
||
28 | /** |
||
29 | * Attempt a translation of a simple string |
||
30 | * |
||
31 | * @param string $string string to translate |
||
32 | * @param string $domain language domain |
||
33 | * |
||
34 | * @return string translated string |
||
35 | * |
||
36 | * @todo do something useful |
||
37 | */ |
||
38 | 1 | public static function translate($string, $domain = null) |
|
42 | |||
43 | /** |
||
44 | * load - load a language file |
||
45 | * |
||
46 | * @param string $name name of the language file |
||
47 | * @param string $domain domain or module supplying language file |
||
48 | * @param string $language language folder name |
||
49 | * |
||
50 | * @return bool true if loaded, otherwise false |
||
51 | */ |
||
52 | 1 | public static function load($name, $domain = '', $language = null) |
|
69 | |||
70 | /** |
||
71 | * Load a file |
||
72 | * |
||
73 | * @param string $filename filename to load |
||
74 | * |
||
75 | * @return bool true if file exists and was loaded |
||
76 | * |
||
77 | * @throws \InvalidArgumentException |
||
78 | */ |
||
79 | protected static function loadFile($filename) |
||
90 | } |
||
91 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.