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
Signed-off-by: Frederic Demians <f.demians@tamil.fr>
A native English speaker could confirm that the wording is ok: Please select
the image file to upload
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit dfa757af92)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
This commit is contained in:
parent
caf0e23032
commit
ffa12f3843
|
|
@ -84,8 +84,8 @@ function verify_images() {
|
|||
var no_images_msg = _("No images have been uploaded for this bibliographic record yet.");
|
||||
no_images_msg = '<p>' + no_images_msg + '</p>';
|
||||
[% IF ( CAN_user_tools_upload_local_cover_images ) %]
|
||||
var please_upload = _("Please %supload%s one.").format(
|
||||
"<a href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&filetype=image'>",
|
||||
var please_upload = _("Please select the image file to upload. %sUpload%s").format(
|
||||
"<a class='btn' href='/cgi-bin/koha/tools/upload-cover-image.pl?biblionumber=[% biblionumber %]&filetype=image'>",
|
||||
"</a>");
|
||||
no_images_msg += "<p id='upload_image'>" + please_upload + '</p>';
|
||||
[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue