Bugzilla – Attachment 163010 Details for
Bug 36282
OPAC - Remove trailing and leading blank space from translated strings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36282: Chomp whitespace around opac i18n strings
Bug-36282-Chomp-whitespace-around-opac-i18n-string.patch (text/plain), 2.48 KB, created by
Lucas Gass (lukeg)
on 2024-03-09 18:18:35 UTC
(
hide
)
Description:
Bug 36282: Chomp whitespace around opac i18n strings
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-03-09 18:18:35 UTC
Size:
2.48 KB
patch
obsolete
>From 68677b9eeae81aea74f28255f2b94d1caa261608 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Fri, 8 Mar 2024 11:49:26 +0000 >Subject: [PATCH] Bug 36282: Chomp whitespace around opac i18n strings > >Same logic as bug 26816 but to OPAC > >Test plan: >1) Apply test plan patch only >2) Visit opac home: ><opac_url>/cgi-bin/koha/opac-main.pl >3) Notice there's a space between 'Translated string' and ':', even though the markup does not contain a whitespace >4) Apply 2nd patch >5) Notice the white space is gone > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > .../opac-tmpl/bootstrap/en/includes/i18n.inc | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/i18n.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/i18n.inc >index 3ad521e843..269785005d 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/i18n.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/i18n.inc >@@ -2,37 +2,37 @@ > [% USE raw %] > > [% MACRO t(msgid) BLOCK %] >- [% I18N.t(msgid) | $raw %] >+ [%- I18N.t(msgid) | $raw -%] > [% END %] > > [% MACRO tx(msgid, vars) BLOCK %] >- [% I18N.tx(msgid, vars) | $raw %] >+ [%- I18N.tx(msgid, vars) | $raw -%] > [% END %] > > [% MACRO tn(msgid, msgid_plural, count) BLOCK %] >- [% I18N.tn(msgid, msgid_plural, count) | $raw %] >+ [%- I18N.tn(msgid, msgid_plural, count) | $raw -%] > [% END %] > > [% MACRO tnx(msgid, msgid_plural, count, vars) BLOCK %] >- [% I18N.tnx(msgid, msgid_plural, count, vars) | $raw %] >+ [%- I18N.tnx(msgid, msgid_plural, count, vars) | $raw -%] > [% END %] > > [% MACRO txn(msgid, msgid_plural, count, vars) BLOCK %] >- [% I18N.txn(msgid, msgid_plural, count, vars) | $raw %] >+ [%- I18N.txn(msgid, msgid_plural, count, vars) | $raw -%] > [% END %] > > [% MACRO tp(msgctxt, msgid) BLOCK %] >- [% I18N.tp(msgctxt, msgid) | $raw %] >+ [%- I18N.tp(msgctxt, msgid) | $raw -%] > [% END %] > > [% MACRO tpx(msgctxt, msgid, vars) BLOCK %] >- [% I18N.tpx(msgctxt, msgid, vars) | $raw %] >+ [%- I18N.tpx(msgctxt, msgid, vars) | $raw -%] > [% END %] > > [% MACRO tnp(msgctxt, msgid, msgid_plural, count) BLOCK %] >- [% I18N.tnp(msgctxt, msgid, msgid_plural, count) | $raw %] >+ [%- I18N.tnp(msgctxt, msgid, msgid_plural, count) | $raw -%] > [% END %] > > [% MACRO tnpx(msgctxt, msgid, msgid_plural, count, vars) BLOCK %] >- [% I18N.tnpx(msgctxt, msgid, msgid_plural, count, vars) | $raw %] >+ [%- I18N.tnpx(msgctxt, msgid, msgid_plural, count, vars) | $raw -%] > [% END %] >-- >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 36282
:
162955
|
162956
|
163010
|
165321