From 925a8337bacff4b1e3fbddeda80ce0fd7a0a01e8 Mon Sep 17 00:00:00 2001 From: Rinor Hoxha Date: Sat, 24 Nov 2012 23:14:28 +0000 Subject: [PATCH] Dialplan Inbound - Multi lang rev.02 - Missed "access denied" --- app/dialplan_inbound/app_languages.php | 7 +++++-- app/dialplan_inbound/dialplan_inbound_add.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/dialplan_inbound/app_languages.php b/app/dialplan_inbound/app_languages.php index 6d41954860..58fe842e22 100644 --- a/app/dialplan_inbound/app_languages.php +++ b/app/dialplan_inbound/app_languages.php @@ -2,9 +2,10 @@ $text['title-dialplan-inbound-add']['en-us'] = 'Inbound Call Routing'; $text['description-dialplan-inbound-add']['en-us'] = 'The public dialplan is used to route incoming calls to destinations based on one or more conditions and context. It can send incoming calls to an auto attendant, huntgroup, extension, external number, or a script.'; - + + $text['label-access-denied']['en-us'] = 'access denied'; + $text['button-back']['en-us'] = 'Back'; - $text['button-advanced']['en-us'] = 'Advanced'; //begin: Basic $text['button-basic']['en-us'] = 'Basic'; @@ -30,6 +31,8 @@ //end: Basic //begin: Advanced + $text['button-advanced']['en-us'] = 'Advanced'; + $text['label-condition_1']['en-us'] = 'Condition 1'; $text['label-condition_2']['en-us'] = 'Condition 2'; diff --git a/app/dialplan_inbound/dialplan_inbound_add.php b/app/dialplan_inbound/dialplan_inbound_add.php index 46cefcdacd..69526a193a 100644 --- a/app/dialplan_inbound/dialplan_inbound_add.php +++ b/app/dialplan_inbound/dialplan_inbound_add.php @@ -30,7 +30,7 @@ if (permission_exists('inbound_route_add')) { //access granted } else { - echo "access denied"; + echo $text['label-access-denied']; exit; } require_once "includes/header.php";