From 365dcae3ab4fdee04a47069a97d4b768a659aaff Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Mon, 14 Apr 2014 21:05:09 +0000 Subject: [PATCH] Registrations - Language fix, customizable auto-refresh feature --- app/registrations/app_languages.php | 11 +++++++ app/registrations/status_registrations.php | 36 +++++++++++++++++++--- 2 files changed, 43 insertions(+), 4 deletions(-) diff --git a/app/registrations/app_languages.php b/app/registrations/app_languages.php index 74a38d24f4..1ef9870df1 100644 --- a/app/registrations/app_languages.php +++ b/app/registrations/app_languages.php @@ -26,6 +26,11 @@ Philippe Rioual */ + $text['header-registrations']['en-us'] = "Registrations"; + $text['header-registrations']['es-cl'] = "Inscripciones"; + $text['header-registrations']['pt-pt'] = "Inscrições"; + $text['header-registrations']['fr-fr'] = "Inscriptions"; + $text['error-event-socket']['en-us'] = "Connection to Event Socket failed."; $text['error-event-socket']['es-cl'] = "Conexión a Socket de eventos fallida."; $text['error-event-socket']['pt-pt'] = "A conexão ao Event Socket falhou."; @@ -51,9 +56,15 @@ $text['button-back']['fr-fr'] = "Retour"; $text['button-refresh']['en-us'] = "Refresh"; + $text['button-refresh']['es-cl'] = "Actualizar"; $text['button-refresh']['pt-pt'] = "Actualizar"; $text['button-refresh']['fr-fr'] = "Rafraîchir"; + $text['label-interval']['en-us'] = "Interval (Sec)"; + $text['label-interval']['es-cl'] = "Intervalo"; + $text['label-interval']['pt-pt'] = "Intervalo"; + $text['label-interval']['fr-fr'] = "Intervalle"; + $text['label-domain']['en-us'] = "Domain"; $text['label-domain']['es-cl'] = "Dominio"; $text['label-domain']['pt-pt'] = "Domínio"; diff --git a/app/registrations/status_registrations.php b/app/registrations/status_registrations.php index fd271e6cf8..3adfc468f7 100644 --- a/app/registrations/status_registrations.php +++ b/app/registrations/status_registrations.php @@ -54,7 +54,7 @@ require_once "resources/check_auth.php"; //create the event socket connection $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if (!$fp) { - $msg = "
".$text['error-event-socket']."
"; + $msg = "
".$text['error-event-socket']."
"; } //show the error message or show the content @@ -129,11 +129,39 @@ require_once "resources/check_auth.php"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; - echo " Registrations: ".count($registrations)."\n"; + echo " ".$text['header-registrations'].": ".count($registrations)."\n"; echo "\n"; - echo " \n"; - echo " \n"; + + $refresh = check_str($_GET["refresh"]); + + echo "\n"; + + echo "\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
\n"; + echo " \n"; + echo " ".$text['label-interval']."\n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
\n"; + echo "
\n";