From a6413fc3f974ba7e98b997305de239a76ec6d608 Mon Sep 17 00:00:00 2001 From: Hector Castro Date: Sat, 7 Nov 2015 00:16:02 -0600 Subject: [PATCH] Bug 15154 - Allow correct translation for upload local cover image To test: -Set syspref LocalCoverImages and OPACLocalCoverImages to Allow -A new tab 'Images' appear in bib record detail on Intranet. -Notice about the phrase "Please upload one" -Apply the patch and reload the page. -New phrase appear "Select the image file to upload" with button Upload -Update translation files : cd misc/translator; perl translate update es-ES -You will see in es-ES-staff-prog.po the new entry "Select the image file to upload. %sUpload%s" -You can see the result installing the translation cd misc/translator ; perl translate install es-ES --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index a83b6ba..f9a1d35 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -84,8 +84,8 @@ function verify_images() { var no_images_msg = _("No images have been uploaded for this bibliographic record yet."); no_images_msg = '

' + no_images_msg + '

'; [% IF ( CAN_user_tools_upload_local_cover_images ) %] - var please_upload = _("Please %supload%s one.").format( - "", + var please_upload = _("Please select the image file to upload. %sUpload%s").format( + "", ""); no_images_msg += "

" + please_upload + '

'; [% END %] -- 2.1.4