From f4c4ceaec7f987a6da8ed06ec32e0a837bd08401 Mon Sep 17 00:00:00 2001 From: O K Date: Sun, 14 Dec 2025 20:53:54 +0200 Subject: [PATCH] added translations --- admin/controller/payment/hutko.php | 6 +++--- admin/language/en-gb/payment/hutko.php | 7 +++++++ admin/language/ru-ru/payment/hutko.php | 6 +++++- admin/language/uk-ua/payment/hutko.php | 6 +++++- catalog/controller/payment/hutko.php | 5 ----- 5 files changed, 20 insertions(+), 10 deletions(-) diff --git a/admin/controller/payment/hutko.php b/admin/controller/payment/hutko.php index c313ca1..5ef5ac6 100644 --- a/admin/controller/payment/hutko.php +++ b/admin/controller/payment/hutko.php @@ -175,14 +175,14 @@ class Hutko extends \Opencart\System\Engine\Controller $data['text_hutko_refund_title'] = $this->language->get('text_hutko_refund_title'); $data['button_hutko_refund'] = $this->language->get('button_hutko_refund'); $data['button_hutko_status_check'] = $this->language->get('button_hutko_status_check'); - $data['button_create_link'] = 'Create New Payment Link'; + $data['button_create_link'] = $this->language->get('button_create_link'); $data['text_confirm_refund'] = $this->language->get('text_confirm_refund'); $data['text_loading'] = $this->language->get('text_loading'); - $data['text_no_transactions'] = 'No Hutko transactions recorded.'; + $data['text_no_transactions'] = $this->language->get('text_no_transactions'); $data['entry_refund_amount'] = $this->language->get('entry_refund_amount'); $data['entry_refund_comment'] = $this->language->get('entry_refund_comment'); - $data['text_create_link_info'] = 'Create a new payment link using current order totals.'; + $data['text_create_link_info'] = $this->language->get('text_create_link_info'); return $this->load->view('extension/hutko/payment/hutko_order_info_panel', $data); } diff --git a/admin/language/en-gb/payment/hutko.php b/admin/language/en-gb/payment/hutko.php index 18ad42d..c8c5758 100644 --- a/admin/language/en-gb/payment/hutko.php +++ b/admin/language/en-gb/payment/hutko.php @@ -112,3 +112,10 @@ $_['text_confirm_refund'] = 'Are you sure you want to refund this transaction vi $_['text_loading'] = 'Loading...'; $_['error_order_not_found'] = 'Error: Order not found.'; + + +$_['text_create_link_info'] = 'Create a new payment link using current order totals.'; +$_['text_no_transactions'] = 'No Hutko transactions recorded.'; +$_['button_create_link'] = 'Create New Payment Link'; + + diff --git a/admin/language/ru-ru/payment/hutko.php b/admin/language/ru-ru/payment/hutko.php index 9f6e4d3..54000c2 100644 --- a/admin/language/ru-ru/payment/hutko.php +++ b/admin/language/ru-ru/payment/hutko.php @@ -101,4 +101,8 @@ $_['text_payment_expired'] = 'Срок платежа истек в Hutko.'; $_['text_payment_processing'] = 'Платеж обрабатывается в Hutko.'; $_['text_confirm_refund'] = 'Вы уверены, что хотите возместить оплату через Hutko? Это действие нельзя отменить.'; $_['text_loading'] = 'Загрузка...'; -$_['error_order_not_found'] = 'Ошибка: заказ не найден.'; \ No newline at end of file +$_['error_order_not_found'] = 'Ошибка: заказ не найден.'; + +$_['text_create_link_info'] = 'Создать платеж используя текущий заказ'; +$_['text_no_transactions'] = 'Не найдены транзакции Hutko.'; +$_['button_create_link'] = 'Создать платежную ссылку'; \ No newline at end of file diff --git a/admin/language/uk-ua/payment/hutko.php b/admin/language/uk-ua/payment/hutko.php index 63dccc4..ac8fef6 100644 --- a/admin/language/uk-ua/payment/hutko.php +++ b/admin/language/uk-ua/payment/hutko.php @@ -102,4 +102,8 @@ $_['text_payment_expired'] = 'Термін платежу минув у Hutko.'; $_['text_payment_processing'] = 'Платіж обробляється в Hutko.'; $_['text_confirm_refund'] = 'Ви впевнені, що хочете відшкодувати оплату через Hutko? Цю дію не можна скасувати.'; $_['text_loading'] = 'Завантаження...'; -$_['error_order_not_found'] = 'Помилка: замовлення не знайдено.'; \ No newline at end of file +$_['error_order_not_found'] = 'Помилка: замовлення не знайдено.'; + +$_['text_create_link_info'] = 'Створити платіжне посилання використовуючи поточне замовлення.'; +$_['text_no_transactions'] = 'Не знайдено транзакцій Hutko.'; +$_['button_create_link'] = 'Створити платіжне посилання'; \ No newline at end of file diff --git a/catalog/controller/payment/hutko.php b/catalog/controller/payment/hutko.php index db5b2c9..b9cae3b 100644 --- a/catalog/controller/payment/hutko.php +++ b/catalog/controller/payment/hutko.php @@ -263,12 +263,7 @@ class Hutko extends \Opencart\System\Engine\Controller public function response(): void { - // Post-Redirect-Get pattern. - // Accepts the POST from Gateway, then redirects user via GET to restore Session/Cookies. - // This ensures the Cart is cleared and User is not logged out. - // If the gateway passes specific error flags in POST, you could check them here - // and redirect to checkout/failure instead. For now, we assume success flow. $this->response->redirect($this->url->link('checkout/success', 'language=' . $this->config->get('config_language'), true)); }