From 742a782183093caf361a54295cd0b7bdcedc5370 Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Wed, 9 Dec 2015 13:37:32 +0300 Subject: [PATCH] Fix. Use `Test` interface to translate UI. --- app/fax/app_languages.php | 24 ++++++++++++++++++++++++ app/fax/fax_active_inc.php | 26 +++++++++++++------------- 2 files changed, 37 insertions(+), 13 deletions(-) diff --git a/app/fax/app_languages.php b/app/fax/app_languages.php index 2cb1bbd38d..3531c78fec 100644 --- a/app/fax/app_languages.php +++ b/app/fax/app_languages.php @@ -2089,4 +2089,28 @@ $text['button-show_all']['uk'] = "Показати всі"; $text['button-show_all']['de-at'] = "Alle anzeigen"; $text['button-show_all']['he'] = ""; +$text['fax-active_title']['en-us'] = "Fax queue"; + +$text['fax-active_description']['en-us'] = "Current status of fax queue"; + +$text['fax-active_title_fax_server']['en-us'] = "Fax"; + +$text['fax-active_title_enabled']['en-us'] = "Enabled"; + +$text['fax-active_title_status']['en-us'] = "Status"; + +$text['fax-active_title_next_time']['en-us'] = "Next time"; + +$text['fax-active_title_files']['en-us'] = "Files"; + +$text['fax-active_title_uri']['en-us'] = "URI"; + +$text['fax-active_status_wait']['en-us'] = "Wait"; + +$text['fax-active_status_execute']['en-us'] = "Execute"; + +$text['fax-active_status_success']['en-us'] = "Success"; + +$text['fax-active_status_fail']['en-us'] = "Fail"; + ?> \ No newline at end of file diff --git a/app/fax/fax_active_inc.php b/app/fax/fax_active_inc.php index b8b791c5eb..9e13e1cc6a 100644 --- a/app/fax/fax_active_inc.php +++ b/app/fax/fax_active_inc.php @@ -106,7 +106,7 @@ HERE; //if the connnection is available then run it and return the results if ($result === false) { var_dump($db->errorInfo()); - $msg = "
".$text['confirm-socket']."
"; + $msg = "
".$text['message-fail']."
"; echo "
\n"; echo "\n"; echo "\n"; @@ -142,9 +142,9 @@ HERE; echo "
"; // show title - echo "".'Fax queue'.""; + echo "".$text['fax-active_title'].""; echo "

\n"; - echo 'Current status of fax queue' . "\n"; + echo $text['fax-active_description']."\n"; echo "

\n"; //set the alternating color for each row @@ -158,12 +158,12 @@ HERE; //show headers echo "\n"; echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "\n"; @@ -172,18 +172,18 @@ HERE; $fax_uri = $row['uri']; $domain_name = $row['domain_name']; $task_enabled = ($row['interrupted'] == 'true') ? 'Disable': 'Enable'; - $task_status = 'Wait'; + $task_status = $text['fax-active_status_wait']; $task_next_time = $row['next_time']; if($row['status'] > 0){ if($row['status'] <= 3){ - $task_status = 'Execute'; + $task_status = $text['fax-active_status_execute']; } else if($row['status'] == 10){ - $task_status = 'Success'; + $task_status = $text['fax-active_status_success']; } else{ - $task_status = 'Fail'; + $task_status = $text['fax-active_status_fail']; } }
". 'Fax' . "". 'Enabled' . "". 'Status' . "". 'Next time' . "". 'Files' . "". 'URI' . "" . $text['fax-active_title_fax_server'] . "" . $text['fax-active_title_enabled'] . "" . $text['fax-active_title_status'] . "" . $text['fax-active_title_next_time'] . "" . $text['fax-active_title_files'] . "" . $text['fax-active_title_uri'] . "