Bugzilla – Attachment 136021 Details for
Bug 30733
Simplify translatable strings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30733: Split strings differently
Bug-30733-Split-strings-differently.patch (text/plain), 19.82 KB, created by
Victor Grousset/tuxayo
on 2022-06-13 12:18:11 UTC
(
hide
)
Description:
Bug 30733: Split strings differently
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2022-06-13 12:18:11 UTC
Size:
19.82 KB
patch
obsolete
>From e6a77bf48a43727009eb5fcbe5ca19ba845603cf Mon Sep 17 00:00:00 2001 >From: Victor Grousset/tuxayo <victor@tuxayo.net> >Date: Sat, 11 Jun 2022 01:46:40 +0200 >Subject: [PATCH] Bug 30733: Split strings differently > >--- > .../prog/en/modules/acqui/neworderempty.tt | 2 +- > .../en/modules/admin/marc_subfields_structure.tt | 14 +++++++------- > .../prog/en/modules/admin/marctagstructure.tt | 2 +- > .../prog/en/modules/basket/sendbasket.tt | 2 +- > .../prog/en/modules/catalogue/detail.tt | 5 +++-- > .../prog/en/modules/catalogue/moredetail.tt | 4 ++-- > .../value_builder/marc21_linking_section.tt | 2 +- > .../cataloguing/value_builder/unimarc_field_4XX.tt | 2 +- > .../prog/en/modules/circ/branchtransfers.tt | 6 +++--- > .../bootstrap/en/includes/holds-table.inc | 5 +++-- > .../opac-tmpl/bootstrap/en/modules/opac-recall.tt | 4 ++-- > .../bootstrap/en/modules/opac-reset-password.tt | 2 +- > 12 files changed, 26 insertions(+), 24 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >index 966a561172..468e93c0a7 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt >@@ -351,7 +351,7 @@ > [% IF subscription %] > <br/> > <div class="hint"> >- <span>Frequency: [% subscription.frequency.description | html %]</span> | >+ <span>Frequency:</span> [% subscription.frequency.description | html %] | > [% IF subscription.numberlength %]<span>Number of issues: [% subscription.numberlength | html %]</span>[% END %] > [% IF subscription.weeklength %]<span>Number of weeks: [% subscription.weeklength | html %]</span>[% END %] > [% IF subscription.monthlength %]<span>Number of months: [% subscription.monthlength | html %]</span>[% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt >index 4617cc8e9d..0ee1b7d199 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt >@@ -398,18 +398,18 @@ > [% IF loo.tab == -1 %] > <em>subfield ignored</em> > [% ELSE %] >- <span>Tab:[% loo.tab | html %]</span>, >- [% IF ( loo.kohafield ) %] | <span>Koha field: [% loo.kohafield | html %]</span>, [% END %] >+ <span>Tab:</span>[% loo.tab | html %], >+ [% IF ( loo.kohafield ) %] | <span>Koha field:</span> [% loo.kohafield | html %], [% END %] > [% IF ( loo.repeatable ) %]<span>Repeatable</span>, [% ELSE %]<span>Not repeatable</span>,[% END %] > [% IF ( loo.mandatory ) %]<span>Mandatory</span>, [% ELSE %]<span>Not mandatory</span>,[% END %] > [% IF ( loo.important ) %]<span>Important</span>, [% ELSE %]<span>Not important</span>,[% END %] >- [% IF ( loo.seealso ) %] | <span>See also: [% loo.seealso | html %]</span>,[% END %] >+ [% IF ( loo.seealso ) %] | <span>See also:</span> [% loo.seealso | html %],[% END %] > [% IF ( loo.hidden ) %]<span>hidden</span>,[% END %] > [% IF ( loo.isurl ) %]<span>is a URL</span>,[% END %] >- [% IF ( loo.authorised_value ) %] | <span>Auth value:[% loo.authorised_value | html %]</span>,[% END %] >- [% IF ( loo.authtypecode ) %] | <span>Authority:[% loo.authtypecode | html %]</span>,[% END %] >- [% IF ( loo.value_builder ) %] | <span>Plugin:[% loo.value_builder | html %]</span>,[% END %] >- [% IF ( loo.link ) %] | <span>Link:[% loo.link | html %]</span>,[% END %] >+ [% IF ( loo.authorised_value ) %] | <span>Auth value:</span>[% loo.authorised_value | html %],[% END %] >+ [% IF ( loo.authtypecode ) %] | <span>Authority:</span>[% loo.authtypecode | html %],[% END %] >+ [% IF ( loo.value_builder ) %] | <span>Plugin:</span>[% loo.value_builder | html %],[% END %] >+ [% IF ( loo.link ) %] | <span>Link:</span>[% loo.link | html %],[% END %] > [% END %] > </td> > <td class="actions"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >index a4e2d2e8d0..94dd186424 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marctagstructure.tt >@@ -277,7 +277,7 @@ MARC frameworks › Administration › Koha > [% FOREACH subfield IN loo.subfields %] > <p> > <span>Tab:[% subfield.tab | html %]</span> | $[% subfield.tagsubfield | html %] >- [% subfield.liblibrarian | html %] [% IF ( subfield.kohafield ) %][% subfield.kohafield | html %][% END %][% IF ( subfield.repeatable ) %], <span>repeatable</span>[% END %][% IF ( subfield.mandatory ) %], <span>Mandatory</span>[% END %][% IF ( subfield.seealso ) %], <span>See</span> [% subfield.seealso | html %][% END %][% IF ( subfield.authorised_value ) %], [% subfield.authorised_value | html %][% END %][% IF ( subfield.authtypecode ) %], [% subfield.authtypecode | html %][% END %][% IF ( subfield.value_builder ) %], [% subfield.value_builder | html %][% END %] >+ [% subfield.liblibrarian | html %] [% IF ( subfield.kohafield ) %][% subfield.kohafield | html %][% END %][% IF ( subfield.repeatable ) %], <span>repeatable</span>[% END %][% IF ( subfield.mandatory ) %], <span>Mandatory</span>[% END %][% IF ( subfield.seealso ) %], <span>See [% subfield.seealso | html %]</span>[% END %][% IF ( subfield.authorised_value ) %], [% subfield.authorised_value | html %][% END %][% IF ( subfield.authtypecode ) %], [% subfield.authtypecode | html %][% END %][% IF ( subfield.value_builder ) %], [% subfield.value_builder | html %][% END %] > </p> > [% END %] > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >index 141007a1bf..a39f377914 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt >@@ -38,7 +38,7 @@ Your cart > > <p> > [% IF ( BIBLIO_RESULT.HASAUTHORS ) %] >- <span><span>Author(s): [% IF ( BIBLIO_RESULT.author ) %][% BIBLIO_RESULT.author | $raw %][% END %]</span> >+ <span><span>Author(s):</span> [% IF ( BIBLIO_RESULT.author ) %][% BIBLIO_RESULT.author | $raw %][% END %] > > [% IF ( BIBLIO_RESULT.MARCAUTHORS ) %] > [% IF ( BIBLIO_RESULT.author ) %]; [% END %] >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 ca9ebf596c..917a7ef246 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -518,12 +518,13 @@ Note that permanent location is a code, and location may be an authval. > [% IF item.recall.waiting_date %] > <span>Waiting at [% Branches.GetName( item.recall.pickup_library_id ) | html %] since [% item.recall.waiting_date | $KohaDates %]</span> > [% ELSE %] >- <span>Item recalled by <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.recall.patron_id | uri %]">[% item.recall.patron.firstname | html %] [% item.recall.patron.surname | html %] ([% item.recall.patron.cardnumber | html %])</a> on [% item.recall.created_date | $KohaDates %]</span> >+ [% patron_link = BLOCK %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.recall.patron_id | uri %]">[% item.recall.patron.firstname | html %] [% item.recall.patron.surname | html %] ([% item.recall.patron.cardnumber | html %])</a>[% END %] >+ <span>Item recalled by [% patron_link| $raw %] on [% item.recall.created_date | $KohaDates %]</span> > [% END %] > [% END %] > > [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || hold || item.recalled ) %] >- Available >+ <span>Available</span> > [% END %] > > [% IF ( item.restricted ) %] >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 3608179afd..3e0794311a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt >@@ -119,8 +119,8 @@ > <ol class="bibliodetails"> > <li><span class="label">Current library:</span> [% Branches.GetName( ITEM_DAT.holdingbranch ) | html %] </li> > <li><span class="label">Checkout status:</span> >- [% IF ( ITEM_DAT.issue ) %]<span>Checked out to</span> >- [% INCLUDE 'patron-title.inc' patron => ITEM_DAT.patron hide_patron_infos_if_needed=1 %] >+ [% IF ( ITEM_DAT.issue ) %]<span>Checked out to >+ [% INCLUDE 'patron-title.inc' patron => ITEM_DAT.patron hide_patron_infos_if_needed=1 %]</span> > [% IF ( ITEM_DAT.lastreneweddate ) %] > <span>Last renewed [% ITEM_DAT.lastreneweddate | $KohaDates %]</span>, > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_linking_section.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_linking_section.tt >index ed0ab35d36..62fa53f9c0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_linking_section.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_linking_section.tt >@@ -54,7 +54,7 @@ > <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=marc21_linking_section.pl&index=[% index | html %]&startfrom=[% startfromnext | html %]&search=[% search | html %]&resultsperpage=[% resultsperpage | html %]&type=intranet&op=do_search">Next>></a> > [% END %]</p> > <p class="resultcount"> >- [% IF ( total ) %]Results [% from | html %] to [% to | html %] of [% total | html %] >+ [% IF ( total ) %]<span>Results [% from | html %] to [% to | html %] of [% total | html %]</span> > [% ELSE %]<span>No results found</span> > [% END %]</p></div> > <div id="resultlist"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_4XX.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_4XX.tt >index 2b5c262f75..dcf404d0e3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_4XX.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/unimarc_field_4XX.tt >@@ -52,7 +52,7 @@ > <a class="resultnumber" href="/cgi-bin/koha/cataloguing/plugin_launcher.pl?plugin_name=unimarc_field_4XX.pl&index=[% index | html %]&startfrom=[% startfromnext | html %]&search=[% search |uri %]&resultsperpage=[% resultsperpage | html %]&type=intranet&op=do_search">Next>></a> > [% END %]</p> > <p class="resultcount"> >- [% IF ( total ) %]Results [% from | html %] to [% to | html %] of [% total | html %] >+ [% IF ( total ) %]<span>Results [% from | html %] to [% to | html %] of [% total | html %]</span> > [% ELSE %]<span>No results found</span> > [% END %]</p></div> > <div id="resultlist"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >index 267cb064e2..563aee1a32 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/branchtransfers.tt >@@ -42,13 +42,13 @@ > <table> > <caption> > [% IF ( reserved ) %] >- Hold found for [% INCLUDE 'patron-title.inc' patron => hold.patron | html %] (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% borrowernumber | html %]</a>). >+ <span>Hold found for [% INCLUDE 'patron-title.inc' patron => hold.patron | html %]</span> (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% borrowernumber | html %]</a>). > [% END %] > [% IF ( waiting ) %] >- Item is marked waiting at [% branchname | html %] for [% name | html %] (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% borrowernumber | html %]</a>). >+ <span>Item is marked waiting at [% branchname | html %] for [% name | html %]</span> (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% borrowernumber | html %]</a>). > [% END %] > [% IF ( transferred ) %] >- Item has been trapped to fill a hold and is in transit for [% name | html %] (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% borrowernumber | html %]</a>). >+ <span>Item has been trapped to fill a hold and is in transit for [% name | html %]</span> (<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber | uri %]">[% borrowernumber | html %]</a>). > [% END %] > </caption> > <tr> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc >index 00b8445f4b..1e956323c1 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/holds-table.inc >@@ -113,12 +113,13 @@ > [% ELSE %] > [% IF ( HOLD.is_in_transit ) %] > [% SET transfer = HOLD.item.get_transfer %] >- <span>Item in transit from <strong> [% Branches.GetName( transfer.frombranch ) | html %]</strong> since</span> >+ [% branch_name = BLOCK %]<strong>[% Branches.GetName( transfer.frombranch ) | html %]</strong>[% END %] >+ <span>Item in transit from [% branch_name| $raw %] since</span> > [% transfer.datesent | $KohaDates %] > [% ELSIF ( HOLD.is_in_processing ) %] > <span>Item in processing</span> > [% ELSIF ( HOLD.suspend ) %] >- <span>Suspended [% IF ( HOLD.suspend_until ) %] until [% HOLD.suspend_until | $KohaDates %] [% END %]</span> >+ <span>Suspended</span>[% IF ( HOLD.suspend_until ) %] <span>until</span> [% HOLD.suspend_until | $KohaDates %][% END %] > [% ELSE %] > [% IF HOLD.itemtype %] > <span>Pending for next available item of item type '[% ItemTypes.GetDescription( HOLD.itemtype ) | html %]'</span> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recall.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recall.tt >index 50fe05dd8a..10c7f95510 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recall.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-recall.tt >@@ -142,9 +142,9 @@ > [% IF ( item.recall ) %] > <span class="waiting"> > [% IF ( item.recall.waitingdate ) %] >- <span>Waiting for patron at</span> [% Branches.GetName( item.recall.branchcode ) | html %] <span>since</span> [% item.recall.waitingdate | $KohaDates %]. >+ <span>Waiting for patron at [% Branches.GetName( item.recall.branchcode ) | html %]</span> <span>since</span> [% item.recall.waitingdate | $KohaDates %]. > [% ELSE %] >- <span>Recalled by patron expected at</span> [% Branches.GetName( item.recall.branchcode ) | html %] <span>since</span> [% item.recall.recalldate | $KohaDates %]. >+ <span>Recalled by patron expected at [% Branches.GetName( item.recall.branchcode ) | html %]</span> <span>since</span> [% item.recall.recalldate | $KohaDates %]. > [% END %] > </span> > [% ELSIF ( hold.waitingdate ) %] >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reset-password.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reset-password.tt >index 855ffde01b..cfbac7a6a5 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reset-password.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reset-password.tt >@@ -50,7 +50,7 @@ > [% CASE 'invalid_credentials' %] > <span>You entered an incorrect username or password. Please try again! But note that passwords are case sensitive[% IF Koha.Preference('FailedLoginAttempts') %] and that your account will be locked out after a fixed number of failed login attempts[% END %]. Please contact a library staff member if you continue to have problems.</span> > [% CASE 'no_expire' %] >- Please log-in to account to update your password.</br> >+ <span>Please log-in to account to update your password.</span></br> > <a href="/cgi-bin/koha/opac-user.pl" class="nav-link login-link loginModal-trigger"><i class="fa fa-user fa-icon-black fa-fw" aria-hidden="true"></i> <span class="userlabel">Log in to your account</span></a>. > [% CASE 'account_locked' %] > This account has been locked! >-- >2.36.1
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 30733
:
134903
|
134908
|
134912
|
135444
|
135564
|
135565
|
135566
|
135567
|
135568
|
135569
|
136012
|
136013
|
136014
|
136015
|
136016
|
136017
|
136018
|
136019
|
136020
|
136021
|
136045
|
136046
|
136047
|
136048
|
136049
|
136050
|
136051
|
136052
|
136053
|
136054
|
136098
|
136099
|
136100
|
136101
|
136102
|
136103
|
136104
|
136105
|
136106
|
136107
|
136108
|
136109
|
136110
|
136111
|
136112
|
136113
|
136114
|
136115
|
136116
|
136117
|
136174
|
136175
|
136176
|
136177
|
136178
|
136179
|
136180
|
136181
|
136182
|
136183
|
136188
|
136189
|
136190
|
136191
|
136192
|
136193
|
136194
|
136195
|
136196
|
136197
|
136202
|
136203
|
136204
|
136205
|
136206
|
136207
|
136208
|
136209
|
136210
|
136211
|
136286