Advanced->Script Editor, added preliminary support for translations.

This commit is contained in:
James Rose
2012-11-24 05:23:48 +00:00
parent b4cd5b78b6
commit 22a7603d84
18 changed files with 257 additions and 49 deletions

View File

@@ -22,8 +22,15 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com>
*/
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
echo "<html>";
echo "<head>";
echo "<title></title>";
@@ -69,7 +76,7 @@ echo "<SCRIPT language=\"JavaScript\">\n";
echo "<!--\n";
echo "function confirmdelete(url)\n";
echo "{\n";
echo " var confirmed = confirm(\"Are you sure want to delete this.\");\n";
echo " var confirmed = confirm($text['button-delete-this']);\n";
echo " if (confirmed == true) {\n";
echo " window.location=url;\n";
echo " }\n";