From 615aae2e654a72e9be5520695a67bc47d63deee8 Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Fri, 15 Aug 2014 05:53:21 +0000 Subject: [PATCH] SIP Status: Multilinguify sofia status column headings, only link gateway names in domain currently being managed. --- app/sip_status/app_languages.php | 21 ++++++++++++++++++++- app/sip_status/sip_status.php | 17 ++++++++++++----- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/app/sip_status/app_languages.php b/app/sip_status/app_languages.php index c7cf83fb4f..1191df1cdb 100644 --- a/app/sip_status/app_languages.php +++ b/app/sip_status/app_languages.php @@ -96,4 +96,23 @@ $text['button-rescan']['pt-pt'] = "Redigitalize"; $text['button-rescan']['fr-fr'] = "Rescan"; -?> + $text['label-name']['en-us'] = "Name"; + $text['label-name']['es-cl'] = "Nombre"; + $text['label-name']['pt-pt'] = "Nome"; + $text['label-name']['fr-fr'] = "Nom"; + + $text['label-type']['en-us'] = "Type"; + $text['label-type']['es-cl'] = "Tipo"; + $text['label-type']['pt-pt'] = "Tipo"; + $text['label-type']['fr-fr'] = "Type"; + + $text['label-data']['en-us'] = "Data"; + $text['label-data']['es-cl'] = "Datos"; + $text['label-data']['pt-pt'] = "Dados"; + $text['label-data']['fr-fr'] = "Données"; + + $text['label-state']['en-us'] = "State"; + $text['label-state']['es-cl'] = "Estado"; + $text['label-state']['fr-fr'] = "Etat"; + $text['label-state']['pt-pt'] = "Estado"; +?> \ No newline at end of file diff --git a/app/sip_status/sip_status.php b/app/sip_status/sip_status.php index 8c43cb8619..13e6ec584f 100644 --- a/app/sip_status/sip_status.php +++ b/app/sip_status/sip_status.php @@ -136,10 +136,10 @@ if ($_GET['a'] == "download") { echo "
"; echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; foreach ($xml->profile as $row) { echo "\n"; @@ -161,7 +161,14 @@ if ($_GET['a'] == "download") { } } echo "\n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n";
NameTypeDataState".$text['label-name']."".$text['label-type']."".$text['label-data']."".$text['label-state']."
".$gateway_name."@".$gateway_domain_name.""; + if ($_SESSION["domain_name"] == $gateway_domain_name) { + echo "".$gateway_name."@".$gateway_domain_name.""; + } + else { + echo $gateway_name."@".$gateway_domain_name; + } + echo " ".$row->type."".$row->data."".$row->state."