From 7984ddeb640240a11efc04da254743a39fec9e16 Mon Sep 17 00:00:00 2001 From: fusionate Date: Thu, 28 Sep 2023 18:37:36 +0000 Subject: [PATCH] Fax Queue - Edit: Add Response field and translations. --- app/fax_queue/app_languages.php | 94 ++++++++++++++++++++++++-------- app/fax_queue/fax_queue_edit.php | 14 +++++ 2 files changed, 85 insertions(+), 23 deletions(-) diff --git a/app/fax_queue/app_languages.php b/app/fax_queue/app_languages.php index 0a7a0c1263..225479c96a 100644 --- a/app/fax_queue/app_languages.php +++ b/app/fax_queue/app_languages.php @@ -744,29 +744,77 @@ $text['label-fax_command']['zh-cn'] = "命令"; $text['label-fax_command']['ja-jp'] = "指図"; $text['label-fax_command']['ko-kr'] = "명령"; -$text['description-fax_command']['en-us'] = "Enter the fax command."; -$text['description-fax_command']['en-gb'] = "Enter the fax command."; -$text['description-fax_command']['ar-eg'] = "أدخل أمر الفاكس"; -$text['description-fax_command']['de-at'] = "Geben Sie den Faxbefehl ein."; -$text['description-fax_command']['de-ch'] = "Geben Sie den Faxbefehl ein."; -$text['description-fax_command']['de-de'] = "Geben Sie den Faxbefehl ein."; -$text['description-fax_command']['es-cl'] = "Introduzca el comando de fax."; -$text['description-fax_command']['es-mx'] = "Introduzca el comando de fax."; -$text['description-fax_command']['fr-ca'] = "Entrez la commande fax."; -$text['description-fax_command']['fr-fr'] = "Entrez la commande fax."; -$text['description-fax_command']['he-il'] = "היכנסו לפקודת הפקס"; -$text['description-fax_command']['it-it'] = "Inserisci il comando fax."; -$text['description-fax_command']['nl-nl'] = "Voer het faxcommando in."; -$text['description-fax_command']['pl-pl'] = "Wejście do faksu."; -$text['description-fax_command']['pt-br'] = "Insira o comando de fax."; -$text['description-fax_command']['pt-pt'] = "Insira o comando de fax."; -$text['description-fax_command']['ro-ro'] = "Introduceți comanda de fax."; -$text['description-fax_command']['ru-ru'] = "Введите команду факса."; -$text['description-fax_command']['sv-se'] = "Ange kommandot fax."; -$text['description-fax_command']['uk-ua'] = "Введіть команду факсу."; -$text['description-fax_command']['zh-cn'] = "输入传真命令。"; -$text['description-fax_command']['ja-jp'] = "ファクスコマンドを入力します。"; -$text['description-fax_command']['ko-kr'] = "팩스 명령을 입력합니다."; +$text['description-fax_command']['en-us'] = "Command used to send the fax."; +$text['description-fax_command']['en-gb'] = "Command used to send the fax."; +$text['description-fax_command']['ar-eg'] = "الأمر المستخدم لإرسال الفاكس."; +$text['description-fax_command']['de-at'] = "Befehl zum Versenden des Faxes."; +$text['description-fax_command']['de-ch'] = "Befehl zum Versenden des Faxes."; +$text['description-fax_command']['de-de'] = "Befehl zum Versenden des Faxes."; +$text['description-fax_command']['es-cl'] = "Comando utilizado para enviar el fax."; +$text['description-fax_command']['es-mx'] = "Comando utilizado para enviar el fax."; +$text['description-fax_command']['fr-ca'] = "Commande utilisée pour envoyer le fax."; +$text['description-fax_command']['fr-fr'] = "Commande utilisée pour envoyer le fax."; +$text['description-fax_command']['he-il'] = "הפקודה משמשת לשליחת הפקס."; +$text['description-fax_command']['it-it'] = "Comando utilizzato per inviare il fax."; +$text['description-fax_command']['nl-nl'] = "Commando dat wordt gebruikt om de fax te verzenden."; +$text['description-fax_command']['pl-pl'] = "Polecenie użyte do wysłania faksu."; +$text['description-fax_command']['pt-br'] = "Comando utilizado para enviar o fax."; +$text['description-fax_command']['pt-pt'] = "Comando utilizado para enviar o fax."; +$text['description-fax_command']['ro-ro'] = "Comanda folosită pentru a trimite faxul."; +$text['description-fax_command']['ru-ru'] = "Команда, используемая для отправки факса."; +$text['description-fax_command']['sv-se'] = "Kommandot används för att skicka faxet."; +$text['description-fax_command']['uk-ua'] = "Команда для надсилання факсу."; +$text['description-fax_command']['zh-cn'] = "用于发送传真的命令。"; +$text['description-fax_command']['ja-jp'] = "FAX を送信するために使用されるコマンド。"; +$text['description-fax_command']['ko-kr'] = "팩스를 보내는 데 사용되는 명령입니다."; + +$text['label-fax_response']['en-us'] = "Response"; +$text['label-fax_response']['en-gb'] = "Response"; +$text['label-fax_response']['ar-eg'] = "إجابة"; +$text['label-fax_response']['de-at'] = "Antwort"; +$text['label-fax_response']['de-ch'] = "Antwort"; +$text['label-fax_response']['de-de'] = "Antwort"; +$text['label-fax_response']['es-cl'] = "Respuesta"; +$text['label-fax_response']['es-mx'] = "Respuesta"; +$text['label-fax_response']['fr-ca'] = "Réponse"; +$text['label-fax_response']['fr-fr'] = "Réponse"; +$text['label-fax_response']['he-il'] = "תְגוּבָה"; +$text['label-fax_response']['it-it'] = "Risposta"; +$text['label-fax_response']['nl-nl'] = "Antwoord"; +$text['label-fax_response']['pl-pl'] = "Odpowiedź"; +$text['label-fax_response']['pt-br'] = "Resposta"; +$text['label-fax_response']['pt-pt'] = "Resposta"; +$text['label-fax_response']['ro-ro'] = "Raspuns"; +$text['label-fax_response']['ru-ru'] = "Ответ"; +$text['label-fax_response']['sv-se'] = "Svar"; +$text['label-fax_response']['uk-ua'] = "Відповідь"; +$text['label-fax_response']['zh-cn'] = "回复"; +$text['label-fax_response']['ja-jp'] = "応答"; +$text['label-fax_response']['ko-kr'] = "응답"; + +$text['description-fax_response']['en-us'] = "Response recieved from sending the fax."; +$text['description-fax_response']['en-gb'] = "Response recieved from sending the fax."; +$text['description-fax_response']['ar-eg'] = "تم تلقي الرد من إرسال الفاكس."; +$text['description-fax_response']['de-at'] = "Vom Senden des Faxes erhaltene Antwort."; +$text['description-fax_response']['de-ch'] = "Vom Senden des Faxes erhaltene Antwort."; +$text['description-fax_response']['de-de'] = "Vom Senden des Faxes erhaltene Antwort."; +$text['description-fax_response']['es-cl'] = "Respuesta recibida del envío del fax."; +$text['description-fax_response']['es-mx'] = "Respuesta recibida del envío del fax."; +$text['description-fax_response']['fr-ca'] = "Réponse reçue suite à l'envoi du fax."; +$text['description-fax_response']['fr-fr'] = "Réponse reçue suite à l'envoi du fax."; +$text['description-fax_response']['he-il'] = "התקבלה תגובה משליחת הפקס."; +$text['description-fax_response']['it-it'] = "Risposta ricevuta dall'invio del fax."; +$text['description-fax_response']['nl-nl'] = "Antwoord ontvangen na het verzenden van de fax."; +$text['description-fax_response']['pl-pl'] = "Odpowiedź otrzymana po wysłaniu faksu."; +$text['description-fax_response']['pt-br'] = "Resposta recebida do envio do fax."; +$text['description-fax_response']['pt-pt'] = "Resposta recebida do envio do fax."; +$text['description-fax_response']['ro-ro'] = "Răspuns primit de la trimiterea faxului."; +$text['description-fax_response']['ru-ru'] = "Получен ответ на отправку факса."; +$text['description-fax_response']['sv-se'] = "Svar mottaget från att skicka faxet."; +$text['description-fax_response']['uk-ua'] = "Отримано відповідь від надсилання факсу."; +$text['description-fax_response']['zh-cn'] = "发送传真收到的响应。"; +$text['description-fax_response']['ja-jp'] = "FAX送信からの応答を受信しました。"; +$text['description-fax_response']['ko-kr'] = "팩스 전송에서 응답을 받았습니다."; $text['label-waiting']['en-us'] = "waiting"; $text['label-waiting']['en-gb'] = "waiting"; diff --git a/app/fax_queue/fax_queue_edit.php b/app/fax_queue/fax_queue_edit.php index 6dea25c233..118aedfd40 100644 --- a/app/fax_queue/fax_queue_edit.php +++ b/app/fax_queue/fax_queue_edit.php @@ -66,6 +66,7 @@ $fax_retry_count = $_POST["fax_retry_count"]; $fax_accountcode = $_POST["fax_accountcode"]; $fax_command = $_POST["fax_command"]; + $fax_response = $_POST["fax_response"]; } //process the user data and save it to the database @@ -164,6 +165,7 @@ $array['fax_queue'][0]['fax_retry_count'] = $fax_retry_count; $array['fax_queue'][0]['fax_accountcode'] = $fax_accountcode; $array['fax_queue'][0]['fax_command'] = $fax_command; + $array['fax_queue'][0]['fax_response'] = $fax_response; //save the data $database = new database; @@ -226,6 +228,7 @@ $fax_retry_count = $row["fax_retry_count"]; $fax_accountcode = $row["fax_accountcode"]; $fax_command = $row["fax_command"]; + $fax_response = $row["fax_response"]; } unset($sql, $parameters, $row); } @@ -445,6 +448,17 @@ echo "\n"; echo "\n"; + echo "\n"; + echo "\n"; + echo " ".$text['label-fax_response']."\n"; + echo "\n"; + echo "\n"; + echo " \n"; + echo "
\n"; + echo $text['description-fax_response']."\n"; + echo "\n"; + echo "\n"; + echo ""; echo "

";