From 248a952b3d9aee0d3e6bcee59302f563305e8735 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 Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 2413ab7e7986c39d5469e8f16d7be9d62bd775d8) Signed-off-by: Matt Blenkinsop (cherry picked from commit f37d7f3f13319ddf1828e7267971b54a855c4b5a) Signed-off-by: Lucas Gass --- 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 4e37967413..16e00c75c0 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' %] @@ -316,7 +317,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 cf6b9afe27..794876bbea 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 @@ -101,7 +102,7 @@ [% END %] [% IF op == 'list' %] -

Quotes

+

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

[% IF quotes_count > 0 %] -- 2.39.5