| 1 | <?php namespace OpenCafe\Tools; |
||
| 12 | class Lang |
||
| 13 | { |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Store language table |
||
| 17 | * |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | protected static $langTable; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Language translated words |
||
| 24 | * |
||
| 25 | * @var array |
||
| 26 | */ |
||
| 27 | protected static $config; |
||
| 28 | |||
| 29 | protected static $obj; |
||
| 30 | |||
| 31 | /************************************************************ |
||
| 32 | * Return translated expression |
||
| 33 | ************************************************************ |
||
| 34 | * |
||
| 35 | * @since Aug, 21 2015 |
||
| 36 | * @param text string |
||
| 37 | * @return mixed |
||
| 38 | * |
||
| 39 | *\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ |
||
| 40 | */ |
||
| 41 | public static function setConfig($language) |
||
| 63 | |||
| 64 | public static function getConfig() |
||
| 70 | |||
| 71 | public static function get( $lang, $value ) { |
||
| 78 | } |
||
| 79 |