From 2a195df251900c19586dd70ba99f734976c86a33 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 16 Jun 2023 11:36:10 +0000 Subject: [PATCH] Bug 34031: Move various translatable strings out of opac-bottom.inc This patch moves some JS variable definitions out of opac-bottom.inc. These variables where defined so that they could be picked up for translation, but they can now be moved to the corresponding diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index da92b75578..54d8998fb3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -614,7 +614,7 @@ var no_label; var message = ""; if ( selected_titles.size() < 1 ) { - alert(MSG_NO_SUGGESTION_SELECTED); + alert( _("No suggestion was selected") ); return false; } else { if( selected_titles.size() > 1 ){ diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/privacy.js b/koha-tmpl/opac-tmpl/bootstrap/js/privacy.js index f2eeb89983..92289679a6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/privacy.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/privacy.js @@ -1,5 +1,6 @@ +/* global __ confirmDelete */ $(document).ready(function(){ $('.privacy-confirm-delete').on('click',function(){ - return confirmDelete(MSG_CONFIRM_AGAIN); + return confirmDelete( __("Warning: Cannot be undone. Please confirm once again") ); }); }); -- 2.30.2