From b25cd57592a24db7289ce5283f9170b31e00bec2 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.39.5