Bugzilla – Attachment 156018 Details for
Bug 33911
Improve translation of title tags: Catalog, basket, and lists
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33911: Move variables into strings
Bug-33911-Move-variables-into-strings.patch (text/plain), 6.05 KB, created by
Katrin Fischer
on 2023-09-21 21:30:17 UTC
(
hide
)
Description:
Bug 33911: Move variables into strings
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-09-21 21:30:17 UTC
Size:
6.05 KB
patch
obsolete
>From 33b1a7e3c67265e08b192af31f824f49bcf8c54b Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >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 <katrin.fischer.83@web.de> >--- > .../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' %] > <title>[% 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 %]</title> >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' %] > <title>[% 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 %]</title> >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' %] > <title>[% 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 %]</title> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33911
:
152128
|
155239
|
156017
| 156018