From 714f751513adf8353ca836afe1129b5e9a5c1d96 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 6 Jan 2023 23:06:52 +0000 Subject: [PATCH] Bug 30993: Improve translatabilty of UPLOAD av hint Improve translatability on the hint for AV UPLOAD on the upload tool page. To test: * Go to tools > uploads * Verify that the hint below the 'Browse...' displayes nicely and the link to the UPLOAD AV works correctly * Apply patch * Verify the link still works and the sentence reads correctly. NOTE: now only UPLOAD will be linked. If you are familiar with the process, you can also make sure the strings now show up on po files as expected: https://wiki.koha-community.org/wiki/Translating_Koha#Updating_the_po_files_in_your_installation Signed-off-by: Caroline Cyr La Rose Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 453793f714367178a2642bfd3115bfc82556ebd0) Signed-off-by: Pedro Amorim (cherry picked from commit 6a12576d015627305b71b60f161590e24d9bcc33) Signed-off-by: Lucas Gass (cherry picked from commit 44e83819aa429cfc3545af5d80f805e48bbfd374) Signed-off-by: Arthur Suzuki --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt index 3127015171..0e61601161 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/upload.tt @@ -4,6 +4,7 @@ [% USE KohaDates %] [% USE TablesSettings %] [% USE AuthorisedValues %] +[%- USE KohaSpan -%] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% IF plugin %] @@ -78,7 +79,8 @@
Note: No upload categories are defined. [% IF ( CAN_user_parameters_manage_auth_values ) -%] - Add values to the UPLOAD authorized value category otherwise all uploads will be marked as temporary. + [% av_UPLOAD_link = BLOCK %]UPLOAD[% END %] + Add values to the [% av_UPLOAD_link | $KohaSpan %] authorized value category otherwise all uploads will be marked as temporary. [% ELSE -%] An administrator must add values to the UPLOAD authorized value category otherwise all uploads will be marked as temporary. [% END %] -- 2.39.5