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