From 4d38cce91630451f99e63cf9a58e891c77876ab6 Mon Sep 17 00:00:00 2001 From: Rom1-B Date: Fri, 10 Oct 2025 15:58:25 +0200 Subject: [PATCH] Fix: Unknown '__s' function --- templates/config.html.twig | 10 +++++----- templates/preference_form.html.twig | 28 ++++++++++++++-------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/templates/config.html.twig b/templates/config.html.twig index 17bdf74..be1ec3d 100644 --- a/templates/config.html.twig +++ b/templates/config.html.twig @@ -36,21 +36,21 @@ 'currency', selected_currency, currency_options, - __s('Choose your international currency', 'pdf') + __('Choose your international currency', 'pdf') ) }}
{% if is_branding_active %} @@ -62,7 +62,7 @@ {% else %} {% endif %} @@ -72,7 +72,7 @@ {{ fields.textareaField( 'add_text', add_text, - __s('Text to add at the end of the PDF generation', 'pdf'), + __('Text to add at the end of the PDF generation', 'pdf'), { 'rows': 5, 'style': 'width:95%' diff --git a/templates/preference_form.html.twig b/templates/preference_form.html.twig index 1d6ed58..5dc01bb 100644 --- a/templates/preference_form.html.twig +++ b/templates/preference_form.html.twig @@ -34,7 +34,7 @@

- {{ __s('%1$s: %2$s')|format(__s('Choose the tables to print in pdf', 'pdf'), item_type_name) }} + {{ __('%1$s: %2$s')|format(__('Choose the tables to print in pdf', 'pdf'), item_type_name) }}

@@ -42,7 +42,7 @@ {% if debug_mode %}
- {{ __s('Debug mode enabled - showing internal references') }} + {{ __('Debug mode enabled - showing internal references') }}
{% endif %} @@ -51,21 +51,21 @@
- {{ __s('Available tables', 'pdf') }} + {{ __('Available tables', 'pdf') }}
- {{ __s('Select tables to include in PDF export', 'pdf') }} + {{ __('Select tables to include in PDF export', 'pdf') }}
@@ -99,16 +99,16 @@
@@ -119,7 +119,7 @@