From 485c91a1cce2572ac28702719a1e7a76e0443f2f Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Sun, 15 Feb 2015 09:04:54 +0000 Subject: [PATCH] Services: Fully mutlilinguified. --- app/services/app_languages.php | 87 +++++++++++++++++++++++++++------- app/services/service_edit.php | 8 ++-- app/services/services.php | 33 ++++++------- 3 files changed, 92 insertions(+), 36 deletions(-) diff --git a/app/services/app_languages.php b/app/services/app_languages.php index 5c4271b239..4279c992ac 100644 --- a/app/services/app_languages.php +++ b/app/services/app_languages.php @@ -26,6 +26,21 @@ Philippe Rioual */ + $text['title-services']['en-us'] = "Services"; + $text['title-services']['es-cl'] = "Servicios"; + $text['title-services']['pt-pt'] = "Serviços"; + $text['title-services']['fr-fr'] = "Services"; + + $text['header-services']['en-us'] = "Services"; + $text['header-services']['es-cl'] = "Servicios"; + $text['header-services']['pt-pt'] = "Serviços"; + $text['header-services']['fr-fr'] = "Services"; + + $text['description-services']['en-us'] = "Shows a list of processes, the status of the process and provides control to start and stop the process."; + $text['description-services']['es-cl'] = "Muestra una lista de los procesos, el estado del proceso y proporciona un control para iniciar y detener el proceso."; + $text['description-services']['pt-pt'] = "Mostra uma lista de processos, o estado do processo e proporciona um controlo para iniciar e parar o processo."; + $text['description-services']['fr-fr'] = "Affiche une liste des processus, l'état du processus et fournit un contrôle pour démarrer et arrêter le processus."; + $text['confirm-delete']['en-us'] = "Do you really want to delete this?"; $text['confirm-delete']['es-cl'] = "¿Realmente desea eliminar esto?"; $text['confirm-delete']['fr-fr'] = "Voulez-vous vraiment supprimer cela?"; @@ -71,6 +86,36 @@ $text['label-name']['pt-pt'] = "Nome"; $text['label-name']['fr-fr'] = "Nom"; + $text['label-status']['en-us'] = "Status"; + $text['label-status']['es-cl'] = "Estado"; + $text['label-status']['pt-pt'] = "Estado"; + $text['label-status']['fr-fr'] = "Statut"; + + $text['label-action']['en-us'] = "Action"; + $text['label-action']['es-cl'] = "Acción"; + $text['label-action']['pt-pt'] = "Ação"; + $text['label-action']['fr-fr'] = "Action"; + + $text['label-running']['en-us'] = "Running"; + $text['label-running']['es-cl'] = "Runcionamiento"; + $text['label-running']['pt-pt'] = "Funcionamento"; + $text['label-running']['fr-fr'] = "Fonctionnement"; + + $text['label-stopped']['en-us'] = "Stopped"; + $text['label-stopped']['es-cl'] = "Detenido"; + $text['label-stopped']['pt-pt'] = "Parou"; + $text['label-stopped']['fr-fr'] = "Arrêtée"; + + $text['label-start']['en-us'] = "Start"; + $text['label-start']['es-cl'] = "Comienzo"; + $text['label-start']['pt-pt'] = "Começo"; + $text['label-start']['fr-fr'] = "Début"; + + $text['label-stop']['en-us'] = "Stop"; + $text['label-stop']['es-cl'] = "Deténgase"; + $text['label-stop']['pt-pt'] = "Pare"; + $text['label-stop']['fr-fr'] = "Arrêtez"; + $text['message-starting']['en-us'] = "Starting Service"; $text['message-starting']['es-cl'] = "Servicio de Inicio"; $text['message-starting']['pt-pt'] = "A Iniciar Serviço"; @@ -106,25 +151,25 @@ $text['description-data']['pt-pt'] = "Introduza os dados do serviço."; $text['description-data']['fr-fr'] = "Entrer les données du service."; - $text['label-start']['en-us'] = "Start Command"; - $text['label-start']['es-cl'] = "Comando para Iniciar"; - $text['label-start']['pt-pt'] = "Comando para Iniciar"; - $text['label-start']['fr-fr'] = "Commande démarrage"; + $text['label-start_command']['en-us'] = "Start Command"; + $text['label-start_command']['es-cl'] = "Comando para Iniciar"; + $text['label-start_command']['pt-pt'] = "Comando para Iniciar"; + $text['label-start_command']['fr-fr'] = "Commande démarrage"; - $text['description-start']['en-us'] = "Enter the command to start the service."; - $text['description-start']['es-cl'] = "Ingrese el comando para iniciar el servicio."; - $text['description-start']['pt-pt'] = "Introduza o comando para arrancar o serviço."; - $text['description-start']['fr-fr'] = "Entrer la commande pour démarrer le service."; + $text['description-start_command']['en-us'] = "Enter the command to start the service."; + $text['description-start_command']['es-cl'] = "Ingrese el comando para iniciar el servicio."; + $text['description-start_command']['pt-pt'] = "Introduza o comando para arrancar o serviço."; + $text['description-start_command']['fr-fr'] = "Entrer la commande pour démarrer le service."; - $text['label-stop']['en-us'] = "Stop Command"; - $text['label-stop']['es-cl'] = "Comando para Detener"; - $text['label-stop']['pt-pt'] = "Comando para Parar"; - $text['label-stop']['fr-fr'] = "Comande d'arrêt"; + $text['label-stop_command']['en-us'] = "Stop Command"; + $text['label-stop_command']['es-cl'] = "Comando para Detener"; + $text['label-stop_command']['pt-pt'] = "Comando para Parar"; + $text['label-stop_command']['fr-fr'] = "Comande d'arrêt"; - $text['description-stop']['en-us'] = "Enter the command to stop the service."; - $text['description-stop']['es-cl'] = "Ingrese el comando para detener el servicio."; - $text['description-stop']['pt-pt'] = "Introduza o comando para parar o serviço."; - $text['description-stop']['fr-fr'] = "Entrer la commande pour arrêter le service."; + $text['description-stop_command']['en-us'] = "Enter the command to stop the service."; + $text['description-stop_command']['es-cl'] = "Ingrese el comando para detener el servicio."; + $text['description-stop_command']['pt-pt'] = "Introduza o comando para parar o serviço."; + $text['description-stop_command']['fr-fr'] = "Entrer la commande pour arrêter le service."; $text['label-description']['en-us'] = "Description"; $text['label-description']['es-cl'] = "Descripción"; @@ -136,4 +181,14 @@ $text['description-description']['pt-pt'] = "Introduza a descrição do serviço."; $text['description-description']['fr-fr'] = "Entrer la description du service."; + $text['button-delete']['en-us'] = "Delete"; + $text['button-delete']['es-cl'] = "Eliminar"; + $text['button-delete']['pt-pt'] = "Remover"; + $text['button-delete']['fr-fr'] = "Supprimer"; + + $text['button-edit']['en-us'] = "Edit"; + $text['button-edit']['es-cl'] = "Editar"; + $text['button-edit']['pt-pt'] = "Editar"; + $text['button-edit']['fr-fr'] = "Editer"; + ?> diff --git a/app/services/service_edit.php b/app/services/service_edit.php index ec0497230c..fc52d5799e 100644 --- a/app/services/service_edit.php +++ b/app/services/service_edit.php @@ -241,23 +241,23 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; - echo " ".$text['label-start']."\n"; + echo " ".$text['label-start_command']."\n"; echo "\n"; echo "\n"; echo " \n"; echo "
\n"; - echo $text['description-start']."\n"; + echo $text['description-start_command']."\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; - echo " ".$text['label-stop']."\n"; + echo " ".$text['label-stop_command']."\n"; echo "\n"; echo "\n"; echo " \n"; echo "
\n"; - echo $text['description-stop']."\n"; + echo $text['description-stop_command']."\n"; echo "\n"; echo "\n"; diff --git a/app/services/services.php b/app/services/services.php index 1c777761ac..9a1799550c 100644 --- a/app/services/services.php +++ b/app/services/services.php @@ -39,6 +39,7 @@ else { $text = $language->get(); require_once "resources/header.php"; +$document['title'] = $text['title-services']; require_once "resources/paging.php"; $order_by = check_str($_GET["order_by"]); @@ -88,12 +89,12 @@ if (strlen($_GET["a"]) > 0) { echo "\n"; echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
Services".$text['header-services']." 
\n"; - echo "Shows a list of processes, the status of the process and provides control to start and stop the process.

\n"; + echo $text['description-services']."

\n"; echo "
\n"; @@ -127,10 +128,10 @@ if (strlen($_GET["a"]) > 0) { echo "\n"; echo "\n"; - echo th_order_by('service_name', 'Name', $order_by, $order); - echo "\n"; - echo "\n"; - echo th_order_by('service_description', 'Description', $order_by, $order); + echo th_order_by('service_name', $text['label-name'], $order_by, $order); + echo "\n"; + echo "\n"; + echo th_order_by('service_description', $text['label-description'], $order_by, $order); echo "\n"; echo " \n"; echo " \n"; echo " \n"; echo "\n";
StatusAction".$text['label-status']."".$text['label-action'].""; if (permission_exists('service_add')) { echo "$v_link_label_add"; @@ -154,47 +155,47 @@ if (strlen($_GET["a"]) > 0) { if ($row[service_type] == "pid" || $row[service_type] == "pid_file") { $pid = file_get_contents($row[service_data]); if (is_process_running($pid)) { - echo "Running"; + echo "".$text['label-running'].""; } else { - echo "Stopped"; + echo "".$text['label-stopped'].""; } } if ($row[service_type] == "file") { $service_data = $row[service_data]; if (file_exists($service_data)) { - echo "Running"; + echo "".$text['label-running'].""; } else { - echo "Stopped"; + echo "".$text['label-stopped'].""; } } echo "\n"; if ($row[service_type] == "pid" || $row[service_type] == "pid_file") { if (is_process_running($pid)) { - echo " Stop"; + echo " ".$text['label-stop'].""; } else { - echo " Start"; + echo " ".$text['label-start'].""; } } if ($row[service_type] == "file") { if (file_exists($service_data)) { - echo " Stop"; + echo " ".$text['label-stop'].""; } else { - echo " Start"; + echo " ".$text['label-start'].""; } } echo "".$row[service_description]." "; if (permission_exists('service_edit')) { - echo "$v_link_label_edit"; + echo "$v_link_label_edit"; } if (permission_exists('service_delete')) { - echo "$v_link_label_delete"; + echo "$v_link_label_delete"; } echo "