Bugzilla – Attachment 103932 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.77 KB, created by
Owen Leonard
on 2020-04-29 12:52:32 UTC
(
hide
)
Description:
Bug 24808: enable translation on results.js
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-04-29 12:52:32 UTC
Size:
1.77 KB
patch
obsolete
>From 396dee524809e4ecc8ef5dea38630e1bb592fcab 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> >--- > 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