From 33b1a7e3c67265e08b192af31f824f49bcf8c54b Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 21 Sep 2023 21:27:57 +0000 Subject: [PATCH] Bug 33911: Move variables into strings This has the advantage that translators can tell the full context and are also able to move the variable if needed for better grammar. Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt | 3 ++- .../intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt | 3 ++- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 3 ++- .../intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt | 3 ++- .../prog/en/modules/catalogue/labeledMARCdetail.tt | 2 +- .../intranet-tmpl/prog/en/modules/catalogue/moredetail.tt | 3 ++- .../intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt | 3 ++- 7 files changed, 13 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt index 43d7d79913..29dfc33b09 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/ISBDdetail.tt @@ -8,7 +8,8 @@ [% IF ( unknownbiblionumber ) %] [% t("Unknown record") | html %] [% ELSE %] - [% t("ISBD details for") | html %] [% INCLUDE 'biblio-title-head.inc' %] + [% title_in_title = INCLUDE 'biblio-title-head.inc' %] + [% tx("ISBD details for {title}", { title = title_in_title }) | html %] [% END %] › [% t("Catalog") | html %] › [% t("Koha") | html %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt index c3a8c468e4..257292383e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/MARCdetail.tt @@ -8,7 +8,8 @@ [% IF ( unknownbiblionumber ) %] [% t("Unknown record") | html %] [% ELSE %] - [% t("MARC details for") | html %] [% INCLUDE 'biblio-title-head.inc' %] + [% title_in_title = INCLUDE 'biblio-title-head.inc' %] + [% tx("MARC details for {title}", { title = title_in_title }) | html %] [% END %] › [% t("Catalog") | html %] › [% t("Koha") | html %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index c4e9eb6c00..8dee35014d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -39,7 +39,8 @@ [% IF ( unknownbiblionumber ) %] [% t("Unknown record") | html %] [% ELSE %] - [% t("Details for") | html %] [% INCLUDE 'biblio-title-head.inc' %] + [% title_in_title = INCLUDE 'biblio-title-head.inc' %] + [% tx("Details for {title}", { title = title_in_title }) | html %] [% END %] › [% t("Catalog") | html %] › [% t("Koha") | html %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt index da5dbeb08a..37c03921eb 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt @@ -8,7 +8,8 @@ [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] - [% t("Checkout history for") | html %] [% INCLUDE 'biblio-title-head.inc' %] › + [% title_in_title = INCLUDE 'biblio-title-head.inc' %] + [% tx("Checkout history for {title}", { title = title_in_title }) | html %] › [% t("Catalog") | html %] › [% t("Koha") | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt index e16b5c47db..946573cadc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/labeledMARCdetail.tt @@ -9,7 +9,7 @@ [% IF ( unknownbiblionumber ) %] [% t("Unknown record") | html %] [% ELSE %] - [% t("Labeled MARC details for") | html %] [% bibliotitle | html %] + [% tx("Labeled MARC details for {title}", { title = bibliotitle }) | html %] [% END %] › [% t("Catalog") | html %] › [% t("Koha") | html %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index 2d8e6f0bdf..5e00e7b2e9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -8,7 +8,8 @@ [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] - [% t("Item details for") | html %] [% INCLUDE 'biblio-title-head.inc' %] › + [% title_in_title = INCLUDE 'biblio-title-head.inc' %] + [% tx("Item details for {title}", { title = title_in_title }) | html %] › [% t("Catalog") | html %] › [% t("Koha") | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt index f7e8199952..e129572d98 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt @@ -6,7 +6,8 @@ [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% FILTER collapse %] - [% t("Stock rotation details for") | html %] [% INCLUDE 'biblio-title-head.inc' %] › + [% title_in_title = INCLUDE 'biblio-title-head.inc' %] + [% tx("Stock rotation details for {title}", { title = title_in_title }) | html %] › [% t("Catalog") | html %] › [% t("Koha") | html %] [% END %] -- 2.30.2