Bug 33001: (follow-up) Add spans for translatability

This patch finds places in the updated breadcrumbs markup where a
translatable string is isolated in a way that makes it hard for the
translation script to find it, and wraps these strings with <span>

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

https://bugs.koha-community.org/show_bug.cgi?id=33005
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 4e2871c285)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
This commit is contained in:
Owen Leonard 2023-02-23 22:53:02 +00:00 committed by Jacob O'Mara
parent 126b2153c0
commit f3fcf7fc1b
9 changed files with 15 additions and 11 deletions

View File

@ -24,11 +24,11 @@
<a href="/cgi-bin/koha/acqui/histsearch.pl">Orders search</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Search results
<span>Search results</span>
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Order search
<span>Order search</span>
[% END %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]

View File

@ -24,7 +24,7 @@
<a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% invoiceid | uri %]">[% invoicenumber | html %]</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Files
<span>Files</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]

View File

@ -21,7 +21,7 @@
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Invoices
<span>Invoices</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]

View File

@ -21,7 +21,7 @@
<a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Late orders
<span>Late orders</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]

View File

@ -21,7 +21,7 @@
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketname | html %] ([% basketno | html %])</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Change estimated delivery date
<span>Change estimated delivery date</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]

View File

@ -24,7 +24,11 @@
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketname | html %] ([% basketno | html %])</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active=1 %]
Change order [% IF (type == "vendor") %]vendor[% ELSE %]internal[% END %] note
[% IF (type == "vendor") %]
<span>Change order's vendor note</span>
[% ELSE %]
<span>Change order's internal note</span>
[% END %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]

View File

@ -56,11 +56,11 @@
[% END %]
[% IF ( ordernumber ) %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Modify order details (line #[% ordernumber | html %])
<span>Modify order details (line #[% ordernumber | html %])</span>
[% END %]
[% ELSE %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
New order
<span>New order</span>
[% END %]
[% END %]
[% END #/ WRAPPER breadcrumbs %]

View File

@ -18,7 +18,7 @@
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Duplicate warning
<span>Duplicate warning</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]

View File

@ -27,7 +27,7 @@
<a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% basketno | uri %]">Basket [% basketno | html %]</a>
[% END %]
[% WRAPPER breadcrumb_item bc_active= 1 %]
Add order from a subscription
<span>Add order from a subscription</span>
[% END %]
[% END #/ WRAPPER breadcrumbs %]
[% END #/ WRAPPER sub-header.inc %]