From 58969c958ca7ddbac52cb1f48c9db0ccb73b5e54 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 2 Jun 2010 12:55:53 -0400 Subject: [PATCH] Fix for Bug 4504, Confirmation messages in opac account not translated Strings within JavaScript onclick attributes are not getting picked up by the translator: onclick="return confirmDelete(_('Are you sure you want to cancel this hold?'));" This patch converts those to use variables defined in the main script block: onclick="return confirmDelete(MSG_CONFIRM_DELETE_HOLD);" Signed-off-by: Galen Charlton --- .../prog/en/modules/opac-search-history.tmpl | 3 ++- .../opac-tmpl/prog/en/modules/opac-shelves.tmpl | 13 +++++++------ koha-tmpl/opac-tmpl/prog/en/modules/opac-user.tmpl | 3 ++- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl index f129925631..18470171ea 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-search-history.tmpl @@ -4,6 +4,7 @@