From b5eb517cda46ec2ef022e612d8580f112c50fde4 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 9 Nov 2012 08:27:55 +0000 Subject: [PATCH] Finish the translation infrastructure for conference center sessions. --- app/conference_centers/app_languages.php | 73 +++++++++++++++++++ .../conference_session_details.php | 40 ++++++---- .../conference_sessions.php | 38 ++++++---- 3 files changed, 119 insertions(+), 32 deletions(-) diff --git a/app/conference_centers/app_languages.php b/app/conference_centers/app_languages.php index c125969093..a42ffb26cd 100644 --- a/app/conference_centers/app_languages.php +++ b/app/conference_centers/app_languages.php @@ -150,4 +150,77 @@ $text['button-save']['en-us'] = 'Save'; $text['button-save']['pt-pt'] = 'Guardar'; + //Conference Sessions + $text['title-conference-sessions']['en-us'] = 'Conference Sessions'; + $text['title-conference-sessions']['pt-pt'] = ''; + + $text['description-conference-sessions']['en-us'] = 'Conference Sessions are log details about the conferences.'; + $text['description-conference-sessions']['pt-pt'] = ''; + + $text['label-time']['en-us'] = 'Time'; + $text['label-time']['pt-pt'] = ''; + + $text['label-start']['en-us'] = 'Start'; + $text['label-start']['pt-pt'] = ''; + + $text['label-end']['en-us'] = 'End'; + $text['label-end']['pt-pt'] = ''; + + $text['label-profile']['en-us'] = 'Profile'; + $text['label-profile']['pt-pt'] = ''; + + $text['label-recording']['en-us'] = 'Recording'; + $text['label-recording']['pt-pt'] = ''; + + $text['label-tools']['en-us'] = 'Tools'; + $text['label-tools']['pt-pt'] = ''; + + $text['label-details']['en-us'] = 'Details'; + $text['label-details']['pt-pt'] = ''; + + $text['label-play']['en-us'] = 'Play'; + $text['label-play']['pt-pt'] = ''; + + $text['label-download']['en-us'] = 'Download'; + $text['label-download']['pt-pt'] = ''; + + //Conference Sessions Details + $text['title-conference-session-details']['en-us'] = 'Conference Session Details'; + $text['title-conference-session-details']['pt-pt'] = ''; + + $text['description-conference-session-details']['en-us'] = 'Conference Sessions are log details of the conferences calls.'; + $text['description-conference-session-details']['pt-pt'] = ''; + + $text['label-username']['en-us'] = 'Username'; + $text['label-username']['pt-pt'] = ''; + + $text['label-uuid']['en-us'] = 'UUID'; + $text['label-uuid']['pt-pt'] = ''; + + $text['label-caller-id-name']['en-us'] = 'Caller ID Name'; + $text['label-caller-id-name']['pt-pt'] = ''; + + $text['label-caller-id-number']['en-us'] = 'Caller ID Number'; + $text['label-caller-id-number']['pt-pt'] = ''; + + $text['label-moderator']['en-us'] = 'Moderator'; + $text['label-moderator']['pt-pt'] = ''; + + $text['label-network-address']['en-us'] = 'Network Address'; + $text['label-network-address']['pt-pt'] = ''; + + $text['label-time']['en-us'] = 'Time'; + $text['label-time']['pt-pt'] = ''; + + $text['label-start']['en-us'] = 'Start'; + $text['label-start']['pt-pt'] = ''; + + $text['label-end']['en-us'] = 'End'; + $text['label-end']['pt-pt'] = ''; + + $text['label-details']['en-us'] = 'Details'; + $text['label-details']['pt-pt'] = ''; + + $text['label-cdr']['en-us'] = 'CDR'; + $text['label-cdr']['pt-pt'] = ''; ?> \ No newline at end of file diff --git a/app/conference_centers/conference_session_details.php b/app/conference_centers/conference_session_details.php index 3c46c69f8d..65e52dc87a 100644 --- a/app/conference_centers/conference_session_details.php +++ b/app/conference_centers/conference_session_details.php @@ -32,8 +32,16 @@ else { echo "access denied"; exit; } -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']]; + } + +//additional includes + require_once "includes/header.php"; + require_once "includes/paging.php"; //set variables from the http values $order_by = check_str($_GET["order_by"]); @@ -49,12 +57,12 @@ require_once "includes/paging.php"; echo "\n"; echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
Conference Session Details".$text['title-conference-session-details']."
\n"; - echo " Conference Sessions are log details about the conferences.

\n"; + echo " ".$text['description-conference-session-details']."

\n"; echo "
\n"; @@ -109,16 +117,16 @@ require_once "includes/paging.php"; echo "\n"; //echo th_order_by('meeting_uuid', 'Meeting UUID', $order_by, $order); //echo th_order_by('conference_uuid', 'Conference UUID', $order_by, $order); - //echo th_order_by('username', 'Username', $order_by, $order); - //echo th_order_by('uuid', 'UUID', $order_by, $order); - echo th_order_by('caller_id_name', 'Caller ID Name', $order_by, $order); - echo th_order_by('caller_id_number', 'Caller ID Number', $order_by, $order); - echo th_order_by('moderator', 'Moderator', $order_by, $order); - echo th_order_by('network_addr', 'Network Address', $order_by, $order); - echo "Time\n"; - echo th_order_by('start_epoch', 'Start', $order_by, $order); - echo th_order_by('end_epoch', 'End', $order_by, $order); - echo "Details\n"; + //echo th_order_by('username', $text['label-username'], $order_by, $order); + //echo th_order_by('uuid', $text['label-uuid'], $order_by, $order); + echo th_order_by('caller_id_name', $text['label-caller-id-name'], $order_by, $order); + echo th_order_by('caller_id_number', $text['label-caller-id-number'], $order_by, $order); + echo th_order_by('moderator', $text['label-moderator'], $order_by, $order); + echo th_order_by('network_addr', $text['label-network-address'], $order_by, $order); + echo "".$text['label-time']."\n"; + echo th_order_by('start_epoch', $text['label-start'], $order_by, $order); + echo th_order_by('end_epoch', $text['label-end'], $order_by, $order); + echo "".$text['label-details']."\n"; echo "\n"; if ($result_count > 0) { @@ -145,7 +153,7 @@ require_once "includes/paging.php"; echo " ".$time_difference." \n"; echo " ".$start_date." \n"; echo " ".$end_date." \n"; - echo " CDR \n"; + echo " ".$text['label-cdr']." \n"; echo "\n"; if ($c==0) { $c=1; } else { $c=0; } } //end foreach diff --git a/app/conference_centers/conference_sessions.php b/app/conference_centers/conference_sessions.php index 8da12ad39b..bdd2b8e366 100644 --- a/app/conference_centers/conference_sessions.php +++ b/app/conference_centers/conference_sessions.php @@ -32,8 +32,16 @@ else { echo "access denied"; exit; } -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']]; + } + +//additional includes + require_once "includes/header.php"; + require_once "includes/paging.php"; //set variables from the http values $meeting_uuid = check_str($_GET["id"]); @@ -49,12 +57,12 @@ require_once "includes/paging.php"; echo "\n"; echo " \n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
Conference Sessions".$text['title-conference-sessions']."
\n"; - echo " Conference Sessions are log details about the conferences.

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

\n"; echo "
\n"; @@ -107,13 +115,12 @@ require_once "includes/paging.php"; echo "
\n"; echo "\n"; echo "\n"; - //echo th_order_by('meeting_uuid', 'Meeting UUID', $order_by, $order); - echo "\n"; - echo th_order_by('start_epoch', 'Start', $order_by, $order); - echo th_order_by('end_epoch', 'End', $order_by, $order); - echo th_order_by('profile', 'Profile', $order_by, $order); - //echo th_order_by('recording', 'Recording', $order_by, $order); - echo "\n"; + echo "\n"; + echo th_order_by('start_epoch', $text['label-start'], $order_by, $order); + echo th_order_by('end_epoch', $text['label-end'], $order_by, $order); + echo th_order_by('profile', $text['label-profile'], $order_by, $order); + //echo th_order_by('recording', $text['label-recording'], $order_by, $order); + echo "\n"; echo "\n"; if ($result_count > 0) { @@ -136,7 +143,6 @@ require_once "includes/paging.php"; } echo "\n"; - //echo " \n"; echo " \n"; echo " \n"; echo " \n"; @@ -150,14 +156,14 @@ require_once "includes/paging.php"; $tmp_name = $row['conference_session_uuid'].".mp3"; } echo "
TimeTools".$text['label-time']."".$text['label-tools']."
".$row['meeting_uuid']." ".$time_difference." ".$start_date." ".$end_date." \n"; - echo " Details \n"; + echo " ".$text['label-details']." \n"; if (strlen($tmp_name) > 0 && file_exists($tmp_dir.'/'.$tmp_name)) { echo " \n"; - echo " Play\n"; + echo " ".$text['label-play']."\n"; echo " \n"; echo "  \n"; echo " \n"; - echo " Download\n"; + echo " ".$text['label-download']."\n"; echo " \n"; echo "  \n"; }