From b1a26201782577f913824ea045eccf1e039cba25 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Frederic Demians A native English speaker could confirm that the wording is ok: Please select the image file to upload Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit dfa757af927aaa5b80a4dd8c90210d12531cfcd7) Signed-off-by: Frédéric Demians (cherry picked from commit ffa12f38437792b927e7189ec9fbe3f3429065a9) Signed-off-by: Liz Rea --- 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 34e0c15600..02dd4114e8 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.39.5