diff --git a/app/conference_centers/app_languages.php b/app/conference_centers/app_languages.php new file mode 100644 index 0000000000..1dd6fbe780 --- /dev/null +++ b/app/conference_centers/app_languages.php @@ -0,0 +1,60 @@ + \ No newline at end of file diff --git a/app/conference_centers/conference_rooms.php b/app/conference_centers/conference_rooms.php index 75e112daea..c52fb0c28a 100644 --- a/app/conference_centers/conference_rooms.php +++ b/app/conference_centers/conference_rooms.php @@ -33,8 +33,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"; //if the $_GET array exists then process it if (count($_GET) > 0) { @@ -116,7 +124,7 @@ require_once "includes/paging.php"; echo "\n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; echo " \n"; echo "
Conference Rooms".$text['title']." 
\n"; @@ -175,19 +183,19 @@ require_once "includes/paging.php"; //echo th_order_by('conference_center_uuid', 'Conference UUID', $order_by, $order); //echo th_order_by('meeting_uuid', 'Meeting UUID', $order_by, $order); - echo th_order_by('profile', 'Profile', $order_by, $order); - echo th_order_by('record', 'Record', $order_by, $order); + echo th_order_by('profile', $text['label-profile'], $order_by, $order); + echo th_order_by('record', $text['label-record'], $order_by, $order); //echo th_order_by('max_members', 'Max', $order_by, $order); - echo th_order_by('wait_mod', 'Wait Moderator', $order_by, $order); - echo th_order_by('announce', 'Announce', $order_by, $order); + echo th_order_by('wait_mod', $text['label-wait-moderator'], $order_by, $order); + echo th_order_by('announce', $text['label-announce'], $order_by, $order); //echo th_order_by('enter_sound', 'Enter Sound', $order_by, $order); - echo th_order_by('mute', 'Mute', $order_by, $order); + echo th_order_by('mute', $text['label-mute'], $order_by, $order); //echo th_order_by('created', 'Created', $order_by, $order); //echo th_order_by('created_by', 'Created By', $order_by, $order); - echo th_order_by('enabled', 'Enabled', $order_by, $order); - echo "Count\n"; - echo "Tools\n"; - echo th_order_by('description', 'Description', $order_by, $order); + echo th_order_by('enabled', $text['label-enabled'], $order_by, $order); + echo "".$text['label-count']."\n"; + echo "".$text['label-tools']."\n"; + echo th_order_by('description', $text['label-description'], $order_by, $order); echo "\n"; if (permission_exists('conference_room_add')) { echo " $v_link_label_add\n"; @@ -207,29 +215,29 @@ require_once "includes/paging.php"; echo " ".$row['profile']." \n"; echo " "; if ($row['record'] == "true") { - echo " ".$row['record'].""; + echo " ".$text['label-true'].""; } else { - echo " ".$row['record'].""; + echo " ".$text['label-false'].""; } echo "  \n"; echo " \n"; //echo " ".$row['max_members']." \n"; echo " "; if ($row['wait_mod'] == "true") { - echo " ".$row['wait_mod'].""; + echo " ".$text['label-true'].""; } else { - echo " ".$row['wait_mod'].""; + echo " ".$text['label-false'].""; } echo "  \n"; echo " \n"; echo " "; if ($row['announce'] == "true") { - echo " ".$row['announce'].""; + echo " ".$text['label-true'].""; } else { - echo " ".$row['announce'].""; + echo " ".$text['label-false'].""; } echo "  \n"; echo " \n"; @@ -237,10 +245,10 @@ require_once "includes/paging.php"; //echo " ".$row['enter_sound']." \n"; echo " "; if ($row['mute'] == "true") { - echo " ".$row['mute'].""; + echo " ".$text['label-true'].""; } else { - echo " ".$row['mute'].""; + echo " ".$text['label-false'].""; } echo "  \n"; echo " \n"; @@ -248,10 +256,10 @@ require_once "includes/paging.php"; //echo " ".$row['created_by']." \n"; echo " "; if ($row['enabled'] == "true") { - echo " ".$row['enabled'].""; + echo " ".$text['label-true'].""; } else { - echo " ".$row['enabled'].""; + echo " ".$text['label-false'].""; } echo "  \n"; echo " \n"; @@ -262,8 +270,8 @@ require_once "includes/paging.php"; echo " 0\n"; } echo " \n"; - echo " View \n"; - echo " Sessions\n"; + echo " ".$text['label-view']." \n"; + echo " ".$text['label-sessions']."\n"; echo " \n"; echo " ".$row['description']." \n";