Bugzilla – Attachment 55733 Details for
Bug 17322
Translation breaks opac-ics.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17322 - Translation breaks opac-ics.tt
Bug-17322---Translation-breaks-opac-icstt.patch (text/plain), 2.03 KB, created by
Josef Moravec
on 2016-09-21 09:12:12 UTC
(
hide
)
Description:
Bug 17322 - Translation breaks opac-ics.tt
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2016-09-21 09:12:12 UTC
Size:
2.03 KB
patch
obsolete
>From 5586a534f8f9da8886672d116859f346adcfc18f Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 20 Sep 2016 16:11:22 +0200 >Subject: [PATCH] Bug 17322 - Translation breaks opac-ics.tt > >This patch adds newlines to opac-ics.tt that are preserved by the translating process. > >To test: >- Apply patch >- Create a translation (perl translate xy-XY) >- With a text editor or poedit, translate misc/translator/po/xy-XY-opac-bootstrap.po > (it is enough to translate "%s %s %s %s is overdue %sYour copy of........") >- Install language xx-XY and select it for OPAC (perl translate install xy-XY) >- Make sure you have at least a couple of loans, including one overdue >- Go to /cgi-bin/koha/opac-user.pl and click on the link labeled "Download as > iCal/.ics file" >- Inspect the file in a text editor and/or view the result in a calendar > appplication. Make sure the data makes sense. Compare it to the english version. > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ics.tt | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ics.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ics.tt >index 8743ec7..67518ca 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ics.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-ics.tt >@@ -1,8 +1,9 @@ >-[%# First line will be summary, second line will be description. Avoid indenting. -%] >+[%# First line will be summary, second line will be description. Avoid indenting. Var newline added to avoid translating problems. -%] >+[%- newline="\n" -%] > [%- IF overdue == 1 -%] > [% title %] is overdue >-Your copy of [% title %] (barcode [% barcode %]) is overdue >+[%- newline -%]Your copy of [% title %] (barcode [% barcode %]) is overdue > [%- ELSE -%] > [% title %] is due >-Your copy of [% title %] (barcode [% barcode %]) is due back at the library today >+[%- newline -%]Your copy of [% title %] (barcode [% barcode %]) is due back at the library today > [%- END -%] >-- >2.1.4
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 17322
:
55718
|
55733
|
55798