diff options
author | raul | 2014-06-13 21:36:02 +0200 |
---|---|---|
committer | raul | 2014-06-13 21:36:02 +0200 |
commit | 3ea6f0a6667122af7ad2980bc00bad841d28af17 (patch) | |
tree | 8ccfb2bdc9953a50d4815593ea09d513205629de /dictionary.php | |
parent | Dump current db scheme (diff) | |
download | slx-admin-3ea6f0a6667122af7ad2980bc00bad841d28af17.tar.gz slx-admin-3ea6f0a6667122af7ad2980bc00bad841d28af17.tar.xz slx-admin-3ea6f0a6667122af7ad2980bc00bad841d28af17.zip |
[i18n] add i18n support, WIP
Diffstat (limited to 'dictionary.php')
-rw-r--r-- | dictionary.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dictionary.php b/dictionary.php new file mode 100644 index 00000000..9563f7c3 --- /dev/null +++ b/dictionary.php @@ -0,0 +1,14 @@ +<?php + +class Dictionary{ + private $dictionary; + + function __construct(){ + $this->dictionary = json_decode(file_get_contents("dictionary.json"),true); + } + + + public function translate($text){ + return $this->dictionary[$text][LANG]; + } +} |