From 6a444eedc367b167709a70277094079bba6a1b12 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 27 Feb 2023 22:13:01 +0000 Subject: [PATCH] Bug 33076: Add context to "Quotes" A quote as a part of quoted text and a quote as part of the acquisition process need to be translated differently at least in German. This patch adds context to the terms, so we can do that. To test: * Go to Tools > Quote editor * Verify the heading of the page reads "Quotes" * Enable EDIFACT system preference * Go to Administration > EDI accounts * Add a new account save * Verify the table heading reads "Quotes" * Apply patch - nothing should change Verify the translation process: * Run: gulp po:update --lang de-DE * Verify the "Quotes" appear now separated by different context in misc/translator/po/de-DE-messages.po Signed-off-by: Owen Leonard --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt | 3 ++- koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt index a2ba4f05017..1db6627fdc8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/edi_accounts.tt @@ -1,6 +1,7 @@ [% USE raw %] [% USE Koha %] [% USE Asset %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] @@ -319,7 +320,7 @@ EDI accounts › Administration › Koha <th>Qualifier</th> <th>SAN</th> <th>Standard</th> - <th>Quotes</th> + <th>[% tp('price offers', 'Quotes') | html %]</th> <th>Orders</th> <th>Invoices</th> <th>Responses</th> diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt index d0d9783ab2a..b96a596ecd9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes.tt @@ -1,5 +1,6 @@ [% USE raw %] [% USE Asset %] +[% PROCESS 'i18n.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] <title>Quote editor › Tools › Koha @@ -104,7 +105,7 @@ [% END %] [% IF op == 'list' %] -

Quotes

+

[% tp('citations', 'Quotes') | html %]

[% IF quotes_count > 0 %]
-- 2.30.2