Bugzilla – Attachment 72405 Details for
Bug 20330
Allow translating more of quote upload
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20330: Allow translating more of quote upload
0001-Bug-20330-Allow-translating-more-of-quote-upload.patch (text/plain), 2.89 KB, created by
paxed
on 2018-03-05 07:23:38 UTC
(
hide
)
Description:
Bug 20330: Allow translating more of quote upload
Filename:
MIME Type:
Creator:
paxed
Created:
2018-03-05 07:23:38 UTC
Size:
2.89 KB
patch
obsolete
>From 428778133850e06a5dfeaa58918a4e9b9ca9ec9a Mon Sep 17 00:00:00 2001 >From: Pasi Kallinen <pasi.kallinen@joensuu.fi> >Date: Mon, 5 Mar 2018 09:09:28 +0200 >Subject: [PATCH] Bug 20330: Allow translating more of quote upload > >Translate the error messages, and the table headers. > >Test plan: > >1) Go to Home -> Tools -> Quote editor -> Import quotes >2) Upload quotes from a file. Try to trigger the error messages >3) On successful import, check the table header texts >4) Apply patch, update & install a language >5) The error messages and the table header texts should > show up in the xx-YY-staff-prog.po >6) Repeat 1,2,3 > >Signed-off-by: Pasi Kallinen <pasi.kallinen@joensuu.fi> >--- > .../intranet-tmpl/prog/en/modules/tools/quotes-upload.tt | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt >index 3eb0ee5de8..9840e862be 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/quotes-upload.tt >@@ -109,15 +109,15 @@ > function fnErrorHandler(evt) { > switch(evt.target.error.code) { > case evt.target.error.NOT_FOUND_ERR: >- alert('File Not Found!'); >+ alert(_("File Not Found!")); > break; > case evt.target.error.NOT_READABLE_ERR: >- alert('File is not readable'); >+ alert(_("File is not readable")); > break; > case evt.target.error.ABORT_ERR: > break; // noop > default: >- alert('An error occurred reading this file.'); >+ alert(_("An error occurred reading this file.")); > }; > } > >@@ -237,15 +237,15 @@ > "aaData" : aaData, > "aoColumns" : [ > { >- "sTitle" : "Number", >+ "sTitle" : _("Number"), > "sWidth" : "2%", > }, > { >- "sTitle" : "Source", >+ "sTitle" : _("Source"), > "sWidth" : "15%", > }, > { >- "sTitle" : "Quote", >+ "sTitle" : _("Quote"), > "sWidth" : "83%", > }, > ], >@@ -292,7 +292,7 @@ > reader.onerror = fnErrorHandler; > reader.onprogress = fnUpdateProgress; > reader.onabort = function(e) { >- alert('File read cancelled'); >+ alert(_("File read cancelled")); > parent.location='quotes-upload.pl'; > }; > reader.onloadstart = function(e) { >-- >2.11.0 >
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 20330
:
72405
|
73286
|
73357