From 76a09a2466ec6249ba0b2f58764dec32c4db04fb Mon Sep 17 00:00:00 2001 From: Caroline Cyr La Rose Date: Wed, 20 Sep 2023 10:24:02 -0400 Subject: [PATCH] Bug 34834: Add translation context for "Order" This patch adds context for translation to the term "Order". It is sometimes used as a verb (e.g. to order) and sometimes as a noun (e.g. an order). To test: 1. Go to the various pages and make sure Order appears correctly in English - orderreceive: when receiving multiple orders, the table heading - parcel: when receiving an order, there is a "View" menu with "Order", "MARC", and "Card" - z3950_search: when adding an order from an external source, if you hover the mouse on the Order option, there is a thing that opens (a tooltip?) with the word "Order" 2. Apply patch 3. Redo step 1 in English, make sure the pages still work 4. Update the translation files gulp po:update --lang fr-CA 5. View the messages.po file and make sure the term is translated for both verb and noun context (you can put anything, just something different to tell them apart) 6. View the pages in the other language, the terms should be - orderreceive: noun - parcel: noun - z3950_search: verb --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index 455cbb3056c..1670b8241e7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -108,7 +108,7 @@ - + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index c2eaea312ee..0f0972a1b9e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -532,7 +532,7 @@ result += ' '; result += ''; result += ''; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt index a458291dbaf..92507070c4d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/z3950_search.tt @@ -218,7 +218,7 @@ tr.selected td { -- 2.34.1
Order[% tp('noun', 'Order') | html %] Title Author ISBN