Language file fix.

This commit is contained in:
Nate Jones
2014-02-23 06:33:25 +00:00
parent 6b90bec7d0
commit bdcf9bd41f
2 changed files with 13 additions and 2 deletions
+5
View File
@@ -61,6 +61,11 @@
$text['message-delete']['pt-pt'] = "Remoção Efectuada"; $text['message-delete']['pt-pt'] = "Remoção Efectuada";
$text['message-delete']['fr-fr'] = "Supprimé"; $text['message-delete']['fr-fr'] = "Supprimé";
$text['message-update']['en-us'] = "Update Completed";
$text['message-update']['es-cl'] = "Actualización Completada";
$text['message-update']['pt-pt'] = "Actualização Efectuada";
$text['message-update']['fr-fr'] = "Mis à jour";
$text['message-give-up']['en-us'] = "Giving up :( Cannot create an XMLHTTP instance"; $text['message-give-up']['en-us'] = "Giving up :( Cannot create an XMLHTTP instance";
$text['message-give-up']['es-cl'] = "Cancelando, no se puede crear una instancia XMLHTTP"; $text['message-give-up']['es-cl'] = "Cancelando, no se puede crear una instancia XMLHTTP";
$text['message-give-up']['pt-pt'] = "Desistindo :( Não é possível criar uma instância do XMLHTTP"; $text['message-give-up']['pt-pt'] = "Desistindo :( Não é possível criar uma instância do XMLHTTP";
+7 -1
View File
@@ -34,6 +34,12 @@ else {
exit; exit;
} }
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
if (count($_POST)>0) { if (count($_POST)>0) {
$clip_uuid = check_str($_POST["id"]); $clip_uuid = check_str($_POST["id"]);
$clip_name = check_str($_POST["clip_name"]); $clip_name = check_str($_POST["clip_name"]);
@@ -58,7 +64,7 @@ if (count($_POST)>0) {
//redirect the browser //redirect the browser
require_once "header.php"; require_once "header.php";
echo "<meta http-equiv=\"refresh\" content=\"1;url=clipoptions.php\">\n"; echo "<meta http-equiv=\"refresh\" content=\"1;url=clipoptions.php\">\n";
echo "Update Complete"; echo $text['message-update'];
require_once "footer.php"; require_once "footer.php";
return; return;
} }