Bugzilla – Attachment 63658 Details for
Bug 18660
Translatability: Get rid of template directives [%% in translation for patroncards-errors.inc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18660: Translatability: Get rid of template directives [%% in translation for patroncards-errors.inc
Bug-18660-Translatability-Get-rid-of-template-dire.patch (text/plain), 7.83 KB, created by
Marc Véron
on 2017-05-23 15:23:10 UTC
(
hide
)
Description:
Bug 18660: Translatability: Get rid of template directives [%% in translation for patroncards-errors.inc
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2017-05-23 15:23:10 UTC
Size:
7.83 KB
patch
obsolete
>From 884790c5445444fe1df53b75645e2d803d59a1c7 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 23 May 2017 17:09:49 +0200 >Subject: [PATCH] Bug 18660: Translatability: Get rid of template directives > [%% in translation for patroncards-errors.inc > >Translation for koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc >contains a lot of (partial) template directives like: >%%]%s %sLayout: [%% > >This patch fixes it > >To test: >- Verify that code changes make sense >- Apply patch >- Create a translation (cd misc/translator , then: perl translate create aa-AA >- Verify that in po/aa-AA-staff-prog.po contains no fragments like %%] or [%% > for patroncards-errors.inc >- Try to get an error: Try a link like > http://[YOUR SERVER]/cgi-bin/koha/patroncards/create-pdf.pl?batch_id=1&template_id=999&layout_id=999&start_card=1 > ...where template_id and layout_id do not exist >--- > .../prog/en/includes/patroncards-errors.inc | 54 ++++++++++++---------- > 1 file changed, 30 insertions(+), 24 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc >index 485c825..a78d9fb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/patroncards-errors.inc >@@ -1,46 +1,52 @@ >+[% BLOCK asksysadmin %]Please have your system administrator check the error log for details.[% END %] >+[% BLOCK b_batch %]Batch: [% END %] >+[% BLOCK b_patronlist %]Patron list: [% END %] >+[% BLOCK b_patronnumber %]Patron number: [% END %] >+[% BLOCK b_layout %]Layout: [% END %] >+[% BLOCK b_template %]Template: [% END %] >+ > [% IF ( error || CGI.param('pdferr') ) %] > <div class="dialog alert"> > <p> > <strong>WARNING:</strong> >- [% IF CGI.param('pdferr') %] >- Error while creating PDF file. >- [% IF CGI.param('errnocards') %]No cards created (empty batch or list?)[% END %] >- [% IF CGI.param('errba') %]Batch: [% '<span class="ex">' _ CGI.param('errba') _ '</span>' %][% END %] >- [% IF CGI.param('errpl') %]Patron list: [% '<span class="ex">' _ CGI.param('errpl') _ '</span>' %][% END %] >- [% IF CGI.param('errpt') %]Patron number: [% '<span class="ex">' _ CGI.param('errpt') _ '</span>' %][% END %] >- [% IF CGI.param('errlo') %]Layout: [% '<span class="ex">' _ CGI.param('errlo') _ '</span>' %][% END %] >- [% IF CGI.param('errtpl') %]Template: [% '<span class="ex">' _ CGI.param('errtpl') _ '</span>' %][% END %] >- >- Please have your system administrator check the error log for details. >+ [% IF CGI.param('pdferr') %]Error while creating PDF file. >+ [% IF CGI.param('errnocards') %]No cards created (empty batch or list?)[% END %] >+ [% IF CGI.param('errba') %][% INCLUDE b_batch %]<span class="ex">[%- CGI.param('errba') -%]</span>[% END %] >+ [% IF CGI.param('errpl') %][% INCLUDE b_patronlist %]<span class="ex">[%- CGI.param('errpl') -%]</span>][% END %] >+ [% IF CGI.param('errpt') %][% INCLUDE b_patronnumber %]<span class="ex">[%- CGI.param('errpt') -%]</span>[% END %] >+ [% IF CGI.param('errlo') %][% INCLUDE b_layout %]<span class="ex">[%- CGI.param('errlo') -%]</span>[% END %] >+ [% IF CGI.param('errtpl') %][% INCLUDE b_template %]<span class="ex">[%- CGI.param('errtpl') -%]</span>[% END %] >+ [% INCLUDE asksysadmin %] > [% END %] >+ > [% IF ( error == 101 ) %] >- The database returned an error while [% IF ( card_element ) %]saving [% card_element %] [% element_id %][% ELSE %]attempting a save operation[% END %]. Please have your system administrator check the error log for details. >+ The database returned an error while [% IF ( card_element ) %]saving [% card_element %] [% element_id %][% ELSE %]attempting a save operation[% END %]. [% INCLUDE asksysadmin %] > [% ELSIF ( error == 102 ) %] >- The database returned an error while [% IF ( card_element ) %]deleting [% card_element %] [% element_id %][% ELSIF ( image_ids ) %][% image_ids %][% ELSE %]attempting a delete operation[% END %]. Please have your system administrator check the error log for details. >+ The database returned an error while [% IF ( card_element ) %]deleting [% card_element %] [% element_id %][% ELSIF ( image_ids ) %][% image_ids %][% ELSE %]attempting a delete operation[% END %]. [% INCLUDE asksysadmin %] > [% ELSIF ( error == 201 ) %] >- An unsupported operation was attempted[% IF ( element_id ) %] on [% card_element %] [% element_id %][% END %]. Please have your system administrator check the error log for details. >+ An unsupported operation was attempted[% IF ( element_id ) %] on [% card_element %] [% element_id %][% END %]. [% INCLUDE asksysadmin %] > [% ELSIF ( error == 202 ) %] >- An error has occurred. Please ask your system administrator to check the error log for more details. >+ An error has occurred. [% INCLUDE asksysadmin %] > [% ELSIF ( error == 203 ) %] >- A non-existent or invalid library code was supplied. Please <a href="/cgi-bin/koha/circ/selectbranchprinter.pl">verify</a> that you have a library selected. >+ A non-existent or invalid library code was supplied. Please verify that you have a library set. <a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a> > [% ELSIF ( error == 301 ) %] >- An error has occurred while attempting to upload the image file. Please ask your system administrator to check the error log for more details. >+ An error has occurred while attempting to upload the image file. [% INCLUDE asksysadmin %] > [% ELSIF ( error == 302 ) %] >- Image exceeds 500KB. Please resize and import again. >+ Image exceeds 500KB. Please resize and import again. > [% ELSIF ( error == 303 ) %] >- The database image quota currently only allows a maximum of [% image_limit %] images to be stored at any one time. Please delete one or more images to free up quota space. >+ The database image quota currently only allows a maximum of [% image_limit %] images to be stored at any one time. Please delete one or more images to free up quota space. > [% ELSIF ( error == 304 ) %] >- An image with the name '[% IMAGE_NAME %]' already exists. >+ An image with the name '[% IMAGE_NAME %]' already exists. > [% ELSIF ( error == 401 ) %] >- An error has occurred and the item(s) was not added to batch [% batch_id %]. Please have your system administrator check the error log for details. >+ An error has occurred and no items have been added to batch [% batch_id %]. [% INCLUDE asksysadmin %] > [% ELSIF ( error == 402 ) %] >- The item(s) was not added because the library is not set. Please set your library before adding items to a batch. >+ No items added because the library is not set. Please set your library before adding items to a batch. <a href="/cgi-bin/koha/circ/selectbranchprinter.pl">Set library</a> > [% ELSIF ( error == 403 ) %] >- An error has occurred and the item(s) was not removed from batch [% batch_id %]. Please have your system administrator check the error log for details. >+ An error has occurred and the item(s) was not removed from batch [% batch_id %]. [% INCLUDE asksysadmin %] > [% ELSIF ( error == 404 ) %] >- An error has occurred and batch [% batch_id %] was not deleted. Please have your system administrator check the error log for details. >+ An error has occurred and batch [% batch_id %] was not deleted. [% INCLUDE asksysadmin %] > [% ELSIF ( error == 405 ) %] >- An error has occurred and batch [% batch_id %] not fully de-duplicated. >+ An error has occurred and batch [% batch_id %] was not fully de-duplicated. > [% END %] > </p> > </div> >-- >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 18660
:
63658
|
64014
|
65427
|
65433
|
66639