From 00180c89d0a62e41f75a6c1d35a8e18ceeafe80e Mon Sep 17 00:00:00 2001 From: Anton Fedurtsya Date: Thu, 26 Sep 2024 20:01:48 +0300 Subject: [PATCH] IVM-6 Move text lines to translation files Signed-off-by: Anton Fedurtsya --- views/admin_twig/de/fainvoice_lang.php | 4 ++++ views/admin_twig/en/fainvoice_lang.php | 4 ++++ views/admin_twig/lt/fainvoice_lang.php | 4 ++++ views/twig/admin/invoice.html.twig | 6 +++--- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/views/admin_twig/de/fainvoice_lang.php b/views/admin_twig/de/fainvoice_lang.php index 537a860..02bddbd 100644 --- a/views/admin_twig/de/fainvoice_lang.php +++ b/views/admin_twig/de/fainvoice_lang.php @@ -7,10 +7,14 @@ require __DIR__ . "/../../../translations/de/module_de_lang.php"; $aLang = array_merge($aLang, [ + 'FA_INVOICE_FORM_TITLE_NEW_DOCUMENT' => 'Neues Rechnungsdokument', + 'FA_INVOICE_FORM_TITLE_CURRENT_DOCUMENT' => 'Aktuelles Dokument', + 'FA_INVOICE_FORM_SIGNER' => 'In Rechnung gestellt von', 'FA_INVOICE_FORM_NUMBER' => 'Rechnungsnummer', 'FA_INVOICE_FORM_DATE' => 'Rechnungsdatum', 'FA_INVOICE_FORM_SAVE_DATA' => 'Neues Rechnungsdokument generieren', + 'FA_INVOICE_FORM_CONFIRM_REGENERATE' => 'Möchten Sie das bereits vorhandene Dokument wirklich neu generieren?', 'FA_INVOICE_FORM_DOWNLOAD' => 'Rechnung herunterladen', diff --git a/views/admin_twig/en/fainvoice_lang.php b/views/admin_twig/en/fainvoice_lang.php index 25220ac..3e97c48 100644 --- a/views/admin_twig/en/fainvoice_lang.php +++ b/views/admin_twig/en/fainvoice_lang.php @@ -7,10 +7,14 @@ require __DIR__ . "/../../../translations/en/module_en_lang.php"; $aLang = array_merge($aLang, [ + 'FA_INVOICE_FORM_TITLE_NEW_DOCUMENT' => 'New invoice document', + 'FA_INVOICE_FORM_TITLE_CURRENT_DOCUMENT' => 'Current document', + 'FA_INVOICE_FORM_SIGNER' => 'Invoiced by', 'FA_INVOICE_FORM_NUMBER' => 'Invoice No', 'FA_INVOICE_FORM_DATE' => 'Invoice Date', 'FA_INVOICE_FORM_SAVE_DATA' => 'Generate new Invoice document', + 'FA_INVOICE_FORM_CONFIRM_REGENERATE' => 'Are you sure you want to regenerate already existing document?', 'FA_INVOICE_FORM_DOWNLOAD' => 'Download Invoice', diff --git a/views/admin_twig/lt/fainvoice_lang.php b/views/admin_twig/lt/fainvoice_lang.php index 1f58c13..2383549 100644 --- a/views/admin_twig/lt/fainvoice_lang.php +++ b/views/admin_twig/lt/fainvoice_lang.php @@ -7,10 +7,14 @@ require __DIR__ . "/../../../translations/lt/module_lt_lang.php"; $aLang = array_merge($aLang, [ + 'FA_INVOICE_FORM_TITLE_NEW_DOCUMENT' => 'Naujas sąskaitos dokumentas', + 'FA_INVOICE_FORM_TITLE_CURRENT_DOCUMENT' => 'Esamas dokumentas', + 'FA_INVOICE_FORM_SIGNER' => 'Sąskaitą išrašė', 'FA_INVOICE_FORM_NUMBER' => 'Sąskaitos Nr.', 'FA_INVOICE_FORM_DATE' => 'Sąskaitos išrašymo data', 'FA_INVOICE_FORM_SAVE_DATA' => 'Generuoti naują dokumentą', + 'FA_INVOICE_FORM_CONFIRM_REGENERATE' => 'Ar tikrai norite pergeneruoti jau esantį dokumentą?', 'FA_INVOICE_FORM_DOWNLOAD' => 'Atsisiusti Sąskaitą', diff --git a/views/twig/admin/invoice.html.twig b/views/twig/admin/invoice.html.twig index cd25285..96f4002 100644 --- a/views/twig/admin/invoice.html.twig +++ b/views/twig/admin/invoice.html.twig @@ -19,7 +19,7 @@ -

New document:

+

{{ translate({ ident: "FA_INVOICE_FORM_TITLE_NEW_DOCUMENT" }) }}:

{{ translate({ ident: "FA_INVOICE_FORM_DATE" }) }}:
{{ translate({ ident: "FA_INVOICE_FORM_NUMBER" }) }}:
@@ -27,7 +27,7 @@
+ {% if invoiceExists %}onclick="return confirm('{{ translate({ ident: "FA_INVOICE_FORM_CONFIRM_REGENERATE" }) }}');"{% endif %}>
@@ -41,7 +41,7 @@ -

Current document:

+

{{ translate({ ident: "FA_INVOICE_FORM_TITLE_CURRENT_DOCUMENT" }) }}:

{{ invoiceFileName }} - {{ invoiceDate }}