Bug 33923: Improve translation of title tags: Reports

This patch updates reports 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:

- Reports ->
  - Reports home
    - Statistics wizards ->
      - Acquisitions
      - Patrons
      - Catalog
      - Circulation
      - Serials
      - Cash register
      - Holds
    - Top lists ->
      - Patrons with the most checkouts
      - Most-circulated items
    - Inactive
      - Patrons who haven't checked out
      - Items with no checkouts
    - Other
      - Items lost
      - Orders by fund
      - Catalog by item type
      - Average loan time
    - Create guided report
    - Create from SQL
    - Use saved report
    - View dictionary

Signed-off-by: Andrew Auld <andrew.auld@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-06-06 15:26:33 +00:00 committed by Tomas Cohen Arazi
parent b0656e853c
commit cdf2dfeceb
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
20 changed files with 169 additions and 37 deletions

View File

@ -4,9 +4,13 @@
[% USE AuthorisedValues %]
[% USE Branches %]
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Mana Knowledge Base reports search &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Mana Knowledge Base reports search") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("css/reports.css") | $raw %]
</head>

View File

@ -1,7 +1,15 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( do_it ) %]Acquisitions statistics &rsaquo; Results[% ELSE %]Acquisitions statistics[% END %] &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% IF( do_it ) %]
[% t("Results") | html %] &rsaquo;
[% END %]
[% t("Acquisitions statistics") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -2,9 +2,14 @@
[% USE Branches %]
[% USE KohaDates %]
[% USE ItemTypes %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Patrons with the most checkouts &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Patrons with the most checkouts") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,7 +1,12 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Patrons with no checkouts &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Patrons with no checkouts") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -2,9 +2,17 @@
[% USE Branches %]
[% USE Koha %]
[% USE Asset %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( do_it ) %]Patrons statistics &rsaquo; Results[% ELSE %]Patrons statistics[% END %] &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% IF( do_it ) %]
[% t("Results") | html %] &rsaquo;
[% END %]
[% t("Patrons statistics") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>

View File

@ -6,10 +6,18 @@
[% USE Price %]
[% USE ItemTypes %]
[% USE Registers %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% PROCESS 'accounts.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( do_it ) %]Cash register statistics &rsaquo; Results[% ELSE %]Cash register statistics[% END %] &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% IF( do_it ) %]
[% t("Results") | html %] &rsaquo;
[% END %]
[% t("Cash register statistics") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,8 +1,16 @@
[% USE raw %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Most-circulated items[% IF ( do_it ) %] &rsaquo; Results[% END %] &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% IF ( do_it ) %]
[% t("Results") | html %] &rsaquo;
[% END %]
[% t("Most-circulated items") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,8 +1,13 @@
[% USE raw %]
[% USE Branches %]
[% USE ItemTypes %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Items with no checkouts &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Items with no checkouts") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>
.sql {display: none;}

View File

@ -1,8 +1,16 @@
[% USE raw %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>[% IF ( do_it ) %]Catalog statistics &rsaquo; Results[% ELSE %]Catalog statistics[% END %] &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% IF( do_it ) %]
[% t("Results") | html %] &rsaquo;
[% END %]
[% t("Catalog statistics") | html %] &rsaquo;
[% t("Reports") | 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>Convert report &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Convert report") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body id="rep_report_convert" class="rep">

View File

@ -1,7 +1,13 @@
[% USE raw %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Dictionary &rsaquo; Guided reports &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Dictionary") | html %] &rsaquo;
[% t("Guided reports wizard") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>fieldset.rows table { clear: none; margin: 0;}</style>
</head>

View File

@ -22,23 +22,39 @@
[% INCLUDE 'doc-head-open.inc' %]
<title>
[%- IF ( saved1 ) -%]
Saved reports &rsaquo; [%- ELSIF ( create ) -%]
Create from SQL &rsaquo; [%- ELSIF ( showsql ) -%]
SQL view &rsaquo; Saved reports &rsaquo; [%- ELSIF ( execute ) -%]
Report [% name | html %] ([% id | html %]) &rsaquo; Saved reports &rsaquo; [%- ELSIF ( editsql ) -%]
Edit report [% reportname | html %] ([% id | html %]) &rsaquo; Saved reports &rsaquo; [%- END -%]
<title>[% FILTER collapse %]
[% IF ( saved1 ) %]
[% t("Saved reports") | html %] &rsaquo;
[% ELSIF ( create ) %]
[% t("Create from SQL") | html %] &rsaquo;
[% ELSIF ( showsql ) %]
[% t("SQL view") | html %] &rsaquo;
[% t("Saved reports") | html %] &rsaquo;
[% ELSIF ( execute ) %]
[% tx("Report {reportname} ({id})", { reportname = name, id = id }) | html %] &rsaquo;
[% t("Saved reports") | html %] &rsaquo;
[% ELSIF ( editsql ) %]
[% tx("Edit report {reportname} ({id})", { reportname = reportname, id = id }) | html %] &rsaquo;
[% t("Saved reports") | html %] &rsaquo;
[% END %]
[%- IF ( build1 ) -%]
Build a report, step 1 of 6: Choose a module &rsaquo; [%- ELSIF ( build2 ) -%]
Build a report, step 2 of 6: Pick a report type &rsaquo; [%- ELSIF ( build3 ) -%]
Build a report, step 3 of 6: Select columns for display &rsaquo; [%- ELSIF ( build4 ) -%]
Build a report, step 4 of 6: Select criteria to limit on &rsaquo; [%- ELSIF ( build5 ) -%]
Build a report, step 5 of 6: Pick which columns to total &rsaquo; [%- ELSIF ( build6 ) -%]
Build a report, step 6 of 6: Select how you want the report ordered &rsaquo; [%- END -%]
Guided reports wizard &rsaquo; Reports &rsaquo; Koha
</title>
[% IF ( build1 ) %]
[% t("Build a report, step 1 of 6: Choose a module") | html %] &rsaquo;
[% ELSIF ( build2 ) %]
[% t("Build a report, step 2 of 6: Pick a report type") | html %] &rsaquo;
[% ELSIF ( build3 ) %]
[% t("Build a report, step 3 of 6: Select columns for display") | html %] &rsaquo;
[% ELSIF ( build4 ) %]
[% t("Build a report, step 4 of 6: Select criteria to limit on") | html %] &rsaquo;
[% ELSIF ( build5 ) %]
[% t("Build a report, step 5 of 6: Pick which columns to total") | html %] &rsaquo;
[% ELSIF ( build6 ) %]
[% t("Build a report, step 6 of 6: Select how you want the report ordered") | html %] &rsaquo;
[% END %]
[% t("Guided reports wizard") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
[% Asset.css("lib/codemirror/codemirror.min.css") | $raw %]

View File

@ -1,8 +1,13 @@
[% USE raw %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Average loan time &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Average loan time") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

@ -1,8 +1,16 @@
[% USE raw %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Circulation statistics[% IF ( do_it ) %] &rsaquo; Results[% END %] &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% IF ( do_it ) %]
[% t("Results") | html %] &rsaquo;
[% END %]
[% t("Circulation statistics") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>
.sql {display:none;}

View File

@ -6,9 +6,14 @@
[% USE KohaDates %]
[% USE ItemTypes %]
[% USE Price %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Lost items &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Lost items") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>

View File

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

View File

@ -3,9 +3,14 @@
[% USE KohaDates %]
[% USE Price %]
[% USE TablesSettings %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Orders by fund &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Orders by fund") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="rep_orders_by_budget" class="rep">

View File

@ -1,7 +1,11 @@
[% USE Koha %]
[% USE raw %]
[% USE Koha %]
[% PROCESS 'i18n.inc' %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
</head>
<body id="rep_reports-home" class="rep">

View File

@ -1,8 +1,16 @@
[% USE raw %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Holds statistics[% IF ( do_it ) %] &rsaquo; Results[% END %] &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% IF ( do_it ) %]
[% t("Results") | html %] &rsaquo;
[% END %]
[% t("Holds statistics") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>
.sql {display:none;}

View File

@ -2,9 +2,14 @@
[% USE Asset %]
[% USE KohaDates %]
[% USE Branches %]
[% PROCESS 'i18n.inc' %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Serials subscriptions stats &rsaquo; Reports &rsaquo; Koha</title>
<title>[% FILTER collapse %]
[% t("Serials subscriptions stats") | html %] &rsaquo;
[% t("Reports") | html %] &rsaquo;
[% t("Koha") | html %]
[% END %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<style>
.sql {display: none;}