Use the new multi-lingual code on fusionpbx/core sub directories.

This commit is contained in:
Mark Crane
2015-01-18 09:22:07 +00:00
parent 283cda7aa1
commit d5731c9172
38 changed files with 136 additions and 221 deletions

View File

@@ -39,13 +39,8 @@ else {
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text['button-save'] as $key => $value) {
$languages[$key] = '';
}
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//get data from the db
if (strlen($_REQUEST["id"]) > 0) {