Skip to content

Commit

Permalink
IVM-6 Move text lines to translation files
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Fedurtsya <[email protected]>
  • Loading branch information
Sieg committed Sep 26, 2024
1 parent da9438a commit 00180c8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions views/admin_twig/de/fainvoice_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',

Expand Down
4 changes: 4 additions & 0 deletions views/admin_twig/en/fainvoice_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',

Expand Down
4 changes: 4 additions & 0 deletions views/admin_twig/lt/fainvoice_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -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ą',

Expand Down
6 changes: 3 additions & 3 deletions views/twig/admin/invoice.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@

<input type="hidden" name="invoice[order_id]" value="{{ oxid }}">

<h2>New document:</h2>
<h2>{{ translate({ ident: "FA_INVOICE_FORM_TITLE_NEW_DOCUMENT" }) }}:</h2>

<div>{{ translate({ ident: "FA_INVOICE_FORM_DATE" }) }}: <input type="text" name="invoice[date]" value="{{ configuration.getDate() }}"></div>
<div>{{ translate({ ident: "FA_INVOICE_FORM_NUMBER" }) }}: <input type="text" name="invoice[number]" value="{{ configuration.getNumber() }}"></div>
<div>{{ translate({ ident: "FA_INVOICE_FORM_SIGNER" }) }}: <input type="text" name="invoice[signer]" value="{{ configuration.getSigner() }}"></div>

<div style="margin-top: 20px;">
<input type="submit" name="generateDocument" value="{{ translate({ ident: "FA_INVOICE_FORM_SAVE_DATA" }) }}"
{% if invoiceExists %}onclick="return confirm('Are you sure you want to regenerate already existing document?');"{% endif %}>
{% if invoiceExists %}onclick="return confirm('{{ translate({ ident: "FA_INVOICE_FORM_CONFIRM_REGENERATE" }) }}');"{% endif %}>
</div>
</form>
</div>
Expand All @@ -41,7 +41,7 @@
<input type="hidden" name="cl" value="fa_invoice_admin">
<input type="hidden" name="fnc" value="downloadOrderInvoice">

<h2>Current document:</h2>
<h2>{{ translate({ ident: "FA_INVOICE_FORM_TITLE_CURRENT_DOCUMENT" }) }}:</h2>
<div>
{{ invoiceFileName }} - {{ invoiceDate }}
</div>
Expand Down

0 comments on commit 00180c8

Please sign in to comment.