diff --git a/core/user_settings/app_languages.php b/core/user_settings/app_languages.php
index eef828285d..8e4890950b 100644
--- a/core/user_settings/app_languages.php
+++ b/core/user_settings/app_languages.php
@@ -1,67 +1,67 @@
$value) {
- $content_users[$key] = $value[$_SESSION['domain']['language']['code']];
+//add multi-lingual support
+ require_once "app_languages.php";
+ foreach($text as $key => $value) {
+ $text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//set the username from v_users
@@ -87,7 +88,7 @@ if (count($_POST)>0 && $_POST["persistform"] != "1") {
$msg = '';
//if (strlen($password) == 0) { $msg .= "Password cannot be blank.
\n"; }
- if ($password != $confirm_password) { $msg .= "".$content_users['confirm-password']."
\n"; }
+ if ($password != $confirm_password) { $msg .= "".$text['confirm-password']."
\n"; }
//if (strlen($user_time_zone) == 0) { $msg .= "Please provide an time zone.
\n"; }
if (strlen($msg) > 0) {
@@ -200,7 +201,7 @@ if (count($_POST)>0 && $_POST["persistform"] != "1") {
//redirect the browser
require_once "includes/header.php";
echo "\n";
- echo "
| ".$content_users['title']." | \n"; + echo "".$text['title']." | \n"; echo "\n"; - echo " "; - echo " "; + echo " "; + echo " "; echo " | \n"; echo "\n"; echo "
| \n"; - echo " ".$content_users['description']." \n"; + echo " ".$text['description']." \n"; echo " | \n"; echo "
| ".$content_users['table-title']." | \n"; + echo "".$text['table-title']." | \n"; echo "||
|---|---|---|---|
| ".$content_users['label-username'].": | "; + echo "".$text['label-username'].": | "; echo "$username | "; echo "|
| ".$content_users['label-password'].": | "; + echo "".$text['label-password'].": | "; echo ""; echo " | |
| ".$content_users['label-confirm-password'].": | "; + echo "".$text['label-confirm-password'].": | "; echo ""; echo " | |
| ".$content_users['table2-title']." | \n"; + echo "".$text['table2-title']." | \n"; echo "||
|---|---|---|---|
| \n"; - echo " ".$content_users['label-status'].":\n"; + echo " ".$text['label-status'].":\n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo " ".$content_users['description-status']." \n"; + echo " ".$text['description-status']." \n"; echo " | \n";
echo " ||
| \n"; - echo " ".$content_users['label-time'].": \n"; + echo " ".$text['label-time'].": \n"; echo " | \n"; echo "\n";
echo " \n";
echo " \n"; - echo " ".$content_users['description-timezone']." \n"; + echo " ".$text['description-timezone']." \n"; echo " | \n";
echo " ||
| "; - echo " "; + echo " "; echo " | "; echo "