Bugzilla – Attachment 53838 Details for
Bug 16871
Translatability: Avoid [%%-problem and fix related sentence splitting in catalogue/detail.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16871: Translatability: Avoid [%%-problem and fix related sentence splitting in catalogue/detail.tt
Bug-16871-Translatability-Avoid--problem-and-fix-r.patch (text/plain), 4.24 KB, created by
Jonathan Druart
on 2016-08-01 13:58:16 UTC
(
hide
)
Description:
Bug 16871: Translatability: Avoid [%%-problem and fix related sentence splitting in catalogue/detail.tt
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-08-01 13:58:16 UTC
Size:
4.24 KB
patch
obsolete
>From 8b34cf7bf0ca4aa6db8c63e25b031861eb7d2fbf Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 5 Jul 2016 07:14:26 +0200 >Subject: [PATCH] Bug 16871: Translatability: Avoid [%%-problem and fix related > sentence splitting in catalogue/detail.tt > >In koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt, >fix line splitted TT directives and sentence splitting leading >to translatability problems. (See first comment). > >To test: >- Apply patch >- Go to detail pages of biblios with waiting holds >- Verify that messages in column 'Status' are OK >- Examine code in patch to make sure that the simplification in logic > makes sense and that no TT directive is splitted >- Bonus test: > - Go to folder misc/translator. Run perl translate create xx-XX > - Verify that monster mentioned in first comment no longer exists > (in po/xx-XX-staff-prog.po) > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Works as advertised > >Amended for wording (comment #5) 2016-07-26 mv >--- > .../prog/en/modules/catalogue/detail.tt | 30 ++++------------------ > 1 file changed, 5 insertions(+), 25 deletions(-) > >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 e9030bf..0e4773d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt >@@ -715,41 +715,21 @@ function verify_images() { > > [% IF ( item.reservedate ) %] > [% IF ( item.waitingdate ) %] >- Waiting >+ Waiting at [% item.ExpectedAtLibrary %] since [% item.waitingdate | $KohaDates %]. > [% ELSE %] >- Item-level hold >+ Item-level hold (placed [% item.reservedate | $KohaDates %]) for delivery at [% item.ExpectedAtLibrary %]. > [% END %] > [% IF ( canreservefromotherbranches ) %] >- for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.ReservedForBorrowernumber %]"> >+ Hold for: <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% item.ReservedForBorrowernumber %]"> > [% IF ( item.hidepatronname ) %] > [% item.Reservedcardnumber %] > [% ELSE %] >- [% item.ReservedForFirstname %] [% item.ReservedForSurname %] >+ [% item.ReservedForFirstname _ item.ReservedForSurname _ " (" _ item.Reservedcardnumber _ ")" %] > [% END %] > </a> > [% END %] >- [% IF ( item.waitingdate ) %] >- at[% ELSE %]for delivery at >- [% END %] >- [% item.ExpectedAtLibrary %] >- [% IF ( item.waitingdate ) %] >- since [% item.waitingdate | $KohaDates %] >- [% ELSE %] >- [% IF ( item.reservedate ) %] >- (placed [% item.reservedate | $KohaDates %]) >- [% END %] >- [% END %] > [% END %] >- [% UNLESS ( >- item.itemnotforloan >- or item.notforloan_per_itemtype >- or item.onloan >- or item.itemlost >- or item.withdrawn >- or item.damaged >- or item.transfertwhen >- or item.reservedate >- ) %] >+ [% UNLESS ( item.itemnotforloan || item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn || item.damaged || item.transfertwhen || item.reservedate ) %] > Available > [% END %] > >-- >2.8.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 16871
:
53184
|
53477
|
53719
| 53838