Bugzilla – Attachment 104141 Details for
Bug 24808
Untranslatable strings in results.js
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24808: enable translation on results.js
Bug-24808-enable-translation-on-resultsjs.patch (text/plain), 1.88 KB, created by
Katrin Fischer
on 2020-05-01 21:10:11 UTC
(
hide
)
Description:
Bug 24808: enable translation on results.js
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-05-01 21:10:11 UTC
Size:
1.88 KB
patch
obsolete
>From 1d8cdfd638c0c36622b819cd9355de60a15a3e66 Mon Sep 17 00:00:00 2001 >From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >Date: Tue, 28 Apr 2020 19:37:52 -0300 >Subject: [PATCH] Bug 24808: enable translation on results.js > >String sorrounded by "__()" > >To test: >1) create translation files for a language >(cd misc/translator; ./translate create xx-YY) > >2) Check string >egrep -l "No cover image available" misc/translator/po/xx-YY-* >present in 2 files, opac-bootstrap and staf-prog > >3) Apply patch > >4) Create files again >(cd misc/translator; rm -f po/xx-YY*; ./translate create xx-YY) > >5) Check again >egrep -l "No cover image available" misc/translator/po/xx-YY-* >present in 3 files, new in messages-js > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/intranet-tmpl/prog/js/pages/results.js | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js b/koha-tmpl/intranet-tmpl/prog/js/pages/results.js >index 2c40cf6c17..6c3a488575 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/pages/results.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/pages/results.js >@@ -314,9 +314,9 @@ function verify_images() { > var w = this.width; > var h = this.height; > if ((w == 1) || (h == 1)) { >- $(this).parent().html('<span class="no-image">No cover image available</span>'); >+ $(this).parent().html('<span class="no-image">'+__("No cover image available")+'</span>'); > } else if ((this.complete != null) && (!this.complete)) { >- $(this).parent().html('<span class="no-image">No cover image available</span>'); >+ $(this).parent().html('<span class="no-image">'+__("No cover image available")+'</span>'); > } > } > }); >-- >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 24808
:
103891
|
103932
| 104141