From 72e1a68c30e133b66ffc252424bd7406100b5233 Mon Sep 17 00:00:00 2001 From: James Rose Date: Fri, 23 Nov 2012 21:12:42 +0000 Subject: [PATCH] App->Voicemail Add initial support for translations --- app/voicemail_status/app_languages.php | 15 +++++++++++++++ app/voicemail_status/v_voicemail.php | 21 +++++++++++++-------- 2 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 app/voicemail_status/app_languages.php diff --git a/app/voicemail_status/app_languages.php b/app/voicemail_status/app_languages.php new file mode 100644 index 0000000000..4b029d3742 --- /dev/null +++ b/app/voicemail_status/app_languages.php @@ -0,0 +1,15 @@ + \ No newline at end of file diff --git a/app/voicemail_status/v_voicemail.php b/app/voicemail_status/v_voicemail.php index 3761a2c488..02b00b4340 100644 --- a/app/voicemail_status/v_voicemail.php +++ b/app/voicemail_status/v_voicemail.php @@ -35,6 +35,11 @@ else { } require_once "includes/header.php"; require_once "includes/paging.php"; +//add multi-lingual support + require_once "app_languages.php"; + foreach($text as $key => $value) { + $text[$key] = $value[$_SESSION['domain']['language']['code']]; + } $order_by = $_GET["order_by"]; $order = $_GET["order"]; @@ -49,8 +54,8 @@ $order = $_GET["order"]; echo "\n"; echo " \n"; - echo " \n"; echo " \n"; echo "
Voicemail
\n"; - echo " Show details about the voicemail settings including the voicemail count, and voicemail to email address.\n"; + echo "
".$text['title-voicemail']."
\n"; + echo " ".$text['description-voicemail']."\n"; echo "
\n"; @@ -64,11 +69,11 @@ $order = $_GET["order"]; echo "\n"; echo "\n"; - echo th_order_by('extension', 'Extension', $order_by, $order); - echo th_order_by('vm_mailto', 'Voicemail Mail To', $order_by, $order); - echo "\n"; - echo th_order_by('enabled', 'Enabled', $order_by, $order); - echo th_order_by('description', 'Description', $order_by, $order); + echo th_order_by('extension', $text['label-extension'], $order_by, $order); + echo th_order_by('vm_mailto', $text['label-voicemail'], $order_by, $order); + echo "\n"; + echo th_order_by('enabled', $text['label-enabled'], $order_by, $order); + echo th_order_by('description', $text['label-description'], $order_by, $order); echo "\n"; $sql = ""; @@ -170,7 +175,7 @@ $order = $_GET["order"]; echo " \n"; echo " \n"; echo "\n";
Messages".$text['label-messages']."
".$row['description']." \n"; if (permission_exists('voicemail_status_delete')) { - echo " $v_link_label_delete\n"; + echo " $v_link_label_delete\n"; } echo "