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['confirm-update']."
"; + echo "
".$text['confirm-update']."
"; require_once "includes/footer.php"; return; } @@ -235,15 +236,15 @@ else { echo "\n"; echo ""; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
".$content_users['title']."".$text['title']."\n"; - echo " "; - echo " "; + echo " "; + echo " "; echo "
\n"; - echo " ".$content_users['description']." \n"; + echo " ".$text['description']." \n"; echo "
\n"; @@ -252,20 +253,20 @@ else { echo ""; echo "\n"; - echo " \n"; + echo " \n"; echo "\n"; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; echo " "; - echo " "; + echo " "; echo " "; echo " "; @@ -277,7 +278,7 @@ else { echo "
".$content_users['table-title']."".$text['table-title']."
".$content_users['label-username'].":".$text['label-username'].":$username
".$content_users['label-password'].":".$text['label-password'].":
".$content_users['label-confirm-password'].":".$text['label-confirm-password'].":
"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; if ($_SESSION['user_status_display'] == "false") { @@ -286,44 +287,44 @@ else { else { echo " \n"; echo " \n"; echo " \n"; echo " \n"; } @@ -364,7 +365,7 @@ else { echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
".$content_users['table2-title']."".$text['table2-title']."
\n"; - echo " ".$content_users['label-status'].":\n"; + echo " ".$text['label-status'].":\n"; echo " \n"; echo " \n"; echo "
\n"; - echo " ".$content_users['description-status']."
\n"; + echo " ".$text['description-status']."
\n"; echo "
\n"; - echo " ".$content_users['label-time'].": \n"; + echo " ".$text['label-time'].": \n"; echo " \n"; echo " \n"; echo "
\n"; - echo " ".$content_users['description-timezone']."
\n"; + echo " ".$text['description-timezone']."
\n"; echo "
"; @@ -403,7 +404,7 @@ else { echo ""; echo " "; echo " "; echo " "; echo "
"; - echo " "; + echo " "; echo "
";