From 2c6f75cfb2eae5122d79d2fbaf37244fe3862bc4 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 2 Jun 2010 12:52:55 -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);" --- .../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 f129925..1847017 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 @@