Bug 33911: Improve translation of title tags: Catalog, basket, and lists

This patch updates catalog, basket, and lists templates so that title
tags can be more easily translated.

To test, apply the patch and confirm that the following pages have the
correct title tags:

 - Advanced search
   - Search results
     - Bibliographic details
       - MARC preview
       - Image viewer (with local cover images)
       - MARC details
       - Labeled MARC details
       - ISBD details
       - Items
       - Checkout history
       - Rota
   - Add titles to the cart and view the cart
     - Send cart
 - Item search
 - Lists
   - View list
   - New list
   - Edit list
   - Send list

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-06-06 15:10:37 +00:00 committed by Tomas Cohen Arazi
parent 26d3520ed7
commit b2f479f51c
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
21 changed files with 167 additions and 55 deletions

View File

@ -2,6 +2,7 @@
[% USE Asset %]
[% USE AuthorisedValues %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% BLOCK controls %]
<p class="cart-controls">
@ -27,7 +28,11 @@
</p>
[% END %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Your cart &rsaquo; Catalog &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Your cart") | html %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,5 +1,10 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Download cart &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Download cart") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body style="padding:1em;" id="cart_downloadcart" class="cart">

View File

@ -1,5 +1,10 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Sending your cart &rsaquo; [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog</title>
<title>[% FILTER collapse %]
[% t("Sending your cart") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body style="padding: 1em;" id="cart_sendbasketform" class="cart">

View File

@ -1,15 +1,18 @@
[% USE raw %]
[% USE Koha %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
[% IF ( unknownbiblionumber ) %]
Unknown record
[% ELSE %]
ISBD details for [% INCLUDE 'biblio-title-head.inc' %]
[% END %] &rsaquo; Catalog &rsaquo; Koha
</title>
<title>[% FILTER collapse %]
[% IF ( unknownbiblionumber ) %]
[% t("Unknown record") | html %]
[% ELSE %]
[% t("ISBD details for") | html %] [% INCLUDE 'biblio-title-head.inc' %]
[% END %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="catalog_ISBDdetail" class="catalog">

View File

@ -1,15 +1,18 @@
[% USE raw %]
[% USE Koha %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
[% IF ( unknownbiblionumber ) %]
Unknown record
[% ELSE %]
MARC details for [% INCLUDE 'biblio-title-head.inc' %]
[% END %] &rsaquo; Catalog &rsaquo; Koha
</title>
<title>[% FILTER collapse %]
[% IF ( unknownbiblionumber ) %]
[% t("Unknown record") | html %]
[% ELSE %]
[% t("MARC details for") | html %] [% INCLUDE 'biblio-title-head.inc' %]
[% END %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -2,9 +2,14 @@
[% USE Koha %]
[% USE Asset %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Advanced search &rsaquo; Catalog &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Advanced search") | html %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -35,13 +35,15 @@
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
[% IF ( unknownbiblionumber ) %]
Unknown record
[% ELSE %]
Details for [% INCLUDE 'biblio-title-head.inc' %]
[% END %] &rsaquo; Catalog &rsaquo; Koha
</title>
<title>[% FILTER collapse %]
[% IF ( unknownbiblionumber ) %]
[% t("Unknown record") | html %]
[% ELSE %]
[% t("Details for") | html %] [% INCLUDE 'biblio-title-head.inc' %]
[% END %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("lib/Chocolat/css/chocolat.css") | $raw %]
</head>

View File

@ -1,8 +1,14 @@
[% USE raw %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Images &rsaquo; [% INCLUDE 'biblio-title-head.inc' %] &rsaquo; Catalog &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Images") | html %] &rsaquo;
[% INCLUDE 'biblio-title-head.inc' %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>
#largeCover {

View File

@ -4,9 +4,14 @@
[% USE KohaDates %]
[% USE Branches %]
[% USE TablesSettings %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Checkout history for [% INCLUDE 'biblio-title-head.inc' %] &rsaquo; Catalog &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Checkout history for") | html %] [% INCLUDE 'biblio-title-head.inc' %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -2,7 +2,7 @@
[% USE To %]
[% USE Asset %]
[% USE AuthorisedValues %]
[% PROCESS 'i18n.inc' %]
[%- BLOCK form_label -%]
[%- SWITCH label -%]
[%- CASE 'barcode' %]<span>Barcode</span>
@ -142,7 +142,11 @@
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Item search &rsaquo; Catalog &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Item search") | html %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("css/itemsearchform.css") | $raw %]
</head>

View File

@ -1,16 +1,19 @@
[% USE raw %]
[% USE Koha %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
[% IF ( unknownbiblionumber ) %]
Unknown record
[% ELSE %]
Labeled MARC details for [% bibliotitle | html %]
[% END %] &rsaquo; Catalog &rsaquo; Koha
</title>
<title>[% FILTER collapse %]
[% IF ( unknownbiblionumber ) %]
[% t("Unknown record") | html %]
[% ELSE %]
[% t("Labeled MARC details for") | html %] [% bibliotitle | html %]
[% END %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -4,9 +4,14 @@
[% USE Koha %]
[% USE Branches %]
[% USE Price %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Item details for [% INCLUDE 'biblio-title-head.inc' %] &rsaquo; Catalog &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Item details for") | html %] [% INCLUDE 'biblio-title-head.inc' %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>.listgroup .rows{margin-left:1em;}</style>
</head>

View File

@ -12,7 +12,27 @@
[% USE AuthorisedValues %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( searchdesc ) %]Results of search [% IF ( query_desc ) %]for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %]&nbsp;with limit(s):&nbsp;'[% limit_desc | html %]'[% END %][% ELSE %]You did not specify any search criteria[% END %] &rsaquo; Catalog &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% IF ( searchdesc ) %]
[% IF ( query_desc ) %]
[% IF ( limit_desc ) %]
[% tx("Results of search for {query_desc} with limit(s): '{limit_desc}'", { query_desc = query_desc, limit_desc = limit_desc }) | html %]
[% ELSE %]
[% tx("Results of search for {query_desc}", { query_desc = query_desc }) | html %]
[% END %]
[% ELSE %]
[% IF ( limit_desc ) %]
[% tx("Results of search for {limit_desc}", { limit_desc = limit_desc }) | html %]
[% ELSE %]
[% t("Results of search") | html %]
[% END %]
[% END %]
[% ELSE %]
[% t("You did not specify any search criteria") | html %]
[% END %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,10 +1,15 @@
[% USE raw %]
[% USE Asset %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
[% USE Koha %]
[% USE KohaDates %]
<title>Search history &rsaquo; Catalog &rsaquo; Koha</title>
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% FILTER collapse %]
[% t("Search history") | html %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,6 +1,10 @@
[% INCLUDE 'doc-head-open.inc' %]
[% USE raw %]
<title>Elasticsearch record &rsaquo; Catalog &rsaquo; Koha</title>
<title>[% FILTER collapse %]
Elasticsearch record &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body id="catalog_showelastic" class="catalog">

View File

@ -1,5 +1,11 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>MARC import &rsaquo; Cataloging &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("MARC import") | html %] &rsaquo;
[% t("Cataloging") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body id="catalog_showmarc" class="catalog">

View File

@ -2,9 +2,14 @@
[% USE Koha %]
[% USE Asset %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Stock rotation details for [% INCLUDE 'biblio-title-head.inc' %] &rsaquo; Catalog &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Stock rotation details for") | html %] [% INCLUDE 'biblio-title-head.inc' %] &rsaquo;
[% t("Catalog") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="catalog_stockrotation" class="catalog">

View File

@ -1,5 +1,11 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Add to list &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Add to list") | html %] &rsaquo;
[% t("Lists") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,5 +1,11 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Download list &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Download list") | html %] &rsaquo;
[% t("Lists") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="lists_downloadshelf" class="lists" style="padding:1em;">

View File

@ -1,5 +1,11 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Sending your list &rsaquo; Lists &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Sending your list") | html %] &rsaquo;
[% t("Lists") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="lists_sendshelfform" class="lists" style="padding: 1em;">

View File

@ -4,19 +4,22 @@
[% USE KohaDates %]
[% USE AuthorisedValues %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>
<title>[% FILTER collapse %]
[% IF op == 'view' %]
Contents of [% shelf.shelfname | html %] &rsaquo; [% END %]
[% tx("Contents of {list_name}", { list_name = shelf.shelfname }) | html %] &rsaquo;
[% END %]
[% IF op == 'add_form' %]
Create new list &rsaquo; [% END %]
[% t("Create new list") | html %] &rsaquo;
[% END %]
[% IF op == 'edit_form' %]
Edit list [% shelf.shelfname | html %] &rsaquo; [% END %]
Lists &rsaquo; Koha
</title>
[% tx("Edit list {list_name}", { list_name = shelf.shelfname }) | html %] &rsaquo;
[% END %]
[% t("Lists") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>textarea { width: 100%; }</style>