Explorar el Código

Language file fix.

Nate Jones hace 11 años
padre
commit
afa1e52a5e
Se han modificado 2 ficheros con 13 adiciones y 2 borrados
  1. 6 1
      app_languages.php
  2. 7 1
      clipupdate.php

+ 6 - 1
app_languages.php

@@ -61,6 +61,11 @@
 	$text['message-delete']['pt-pt'] = "Remoção Efectuada";
 	$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']['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";
@@ -89,7 +94,7 @@
 	$text['message-delete-clip']['en-us'] = "Are you sure you want to delete the selected clip?";
 	$text['message-delete-clip']['es-cl'] = "¿Realmente desea eliminar el clip seleccionado?";
 	$text['message-delete-clip']['pt-pt'] = "Tem a certeza que pretende remover o clip seleccionado?";
-	$text['message-delete-clip']['fr-fr'] = "Etes-vous sûr de vouloir supprimer le CLIP sélectionné?"; 
+	$text['message-delete-clip']['fr-fr'] = "Etes-vous sûr de vouloir supprimer le CLIP sélectionné?";
 
 	$text['button-delete']['en-us'] = "  Delete   ";
 	$text['button-delete']['es-cl'] = "  Eliminar   ";

+ 7 - 1
clipupdate.php

@@ -34,6 +34,12 @@ else {
 	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) {
 	$clip_uuid = check_str($_POST["id"]);
 	$clip_name = check_str($_POST["clip_name"]);
@@ -58,7 +64,7 @@ if (count($_POST)>0) {
 	//redirect the browser
 	require_once "header.php";
 	echo "<meta http-equiv=\"refresh\" content=\"1;url=clipoptions.php\">\n";
-	echo "Update Complete";
+	echo $text['message-update'];
 	require_once "footer.php";
 	return;
 }