diff --git a/app/voicemail_greetings/app_languages.php b/app/voicemail_greetings/app_languages.php index 5d2529592a..17ccdc96d1 100644 --- a/app/voicemail_greetings/app_languages.php +++ b/app/voicemail_greetings/app_languages.php @@ -41,11 +41,17 @@ $text['button-back']['pt-pt'] = "Voltar"; $text['button-back']['fr-fr'] = "Retour"; - $text['button-save']['en-us'] = "Upload"; + $text['button-upload']['en-us'] = "Upload"; + $text['button-upload']['es-cl'] = "Subir"; + $text['button-upload']['pt-pt'] = "Carregar"; + $text['button-upload']['fr-fr'] = "Télécharger"; + + $text['button-save']['en-us'] = "Save"; $text['button-save']['es-cl'] = "Guardar"; $text['button-save']['pt-pt'] = "Guardar"; $text['button-save']['fr-fr'] = "Sauvegarder"; + //voicemail_greeting_edit $text['confirm-name']['en-us'] = "Please provide: Greeting Name (play)"; $text['confirm-name']['es-cl'] = "Por favor indique: Nombre de Bienvenida (reproducir)"; diff --git a/app/voicemail_greetings/voicemail_greeting_edit.php b/app/voicemail_greetings/voicemail_greeting_edit.php index d62ecd46f3..3d3b3f60ec 100644 --- a/app/voicemail_greetings/voicemail_greeting_edit.php +++ b/app/voicemail_greetings/voicemail_greeting_edit.php @@ -186,7 +186,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { if ($action == "update") { echo "".$text['label-edit']."\n"; } - echo "\n"; + echo "\n"; + echo " "; + echo " \n"; + echo "\n"; echo "\n"; echo "\n"; diff --git a/app/voicemail_greetings/voicemail_greetings.php b/app/voicemail_greetings/voicemail_greetings.php index baf5d05d3d..6fe383a837 100644 --- a/app/voicemail_greetings/voicemail_greetings.php +++ b/app/voicemail_greetings/voicemail_greetings.php @@ -78,7 +78,7 @@ else { $v_greeting_dir = $_SESSION['switch']['storage']['dir'].'/voicemail/default/'.$_SESSION['domains'][$domain_uuid]['domain_name'].'/'.$voicemail_id; //upload the recording - if (($_POST['submit'] == $text['button-save']) && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('voicemail_greeting_upload')) { + if (($_POST['submit'] == $text['button-upload']) && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('voicemail_greeting_upload')) { if ($_POST['type'] == 'rec') { for($i = 1; $i < 10; $i++){ $tmp_greeting = 'greeting_'.$i.'.wav'; @@ -97,7 +97,7 @@ else { } //save the selected greeting - if ($_REQUEST['submit'] == $text['button-save']) { + if ($_REQUEST['submit'] == $text['button-upload']) { //save the greeting_id to a variable $greeting_id = check_str($_REQUEST['greeting_id']); @@ -237,7 +237,7 @@ else { echo "      \n"; echo " \n"; echo " \n"; - echo " \n"; + echo " \n"; echo " \n"; } @@ -333,12 +333,12 @@ else { echo " \n"; echo " ".$tmp_filesize."\n"; echo " ".$row['greeting_description']." \n"; - echo " \n"; - //if (permission_exists('voicemail_greeting_edit')) { - // echo " $v_link_label_edit\n"; - //} + echo " \n"; + if (permission_exists('voicemail_greeting_edit')) { + echo "$v_link_label_edit"; + } if (permission_exists('voicemail_greeting_delete')) { - echo " $v_link_label_delete\n"; + echo "$v_link_label_delete"; } echo " \n"; echo "\n";