From 252d59519446cf1a06237cdab7f533924e5e57cb Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Thu, 17 Jun 2010 21:51:21 +0200 Subject: [PATCH] Bug 4833: OPAC - remove \n from strings for translation Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl | 6 +++--- koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl index 217993ca78..0e25c38aa0 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl @@ -129,14 +129,14 @@ $(function() { var alertString2; if(f.addshelf.value.length ==0){ - _alertString += _("- You must enter a List Name\n"); + _alertString += _("- You must enter a List Name") + "\n"; } if (_alertString.length==0) { document.Aform.submit(); } else { - alertString2 = _("Form not submitted because of the following problem(s)\n"); - alertString2 += "------------------------------------------------------------------------------------\n\n"; + alertString2 = _("Form not submitted because of the following problem(s)"); + alertString2 += "\n------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; alert(alertString2); } diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl index dfbd4326a5..ab5b753a29 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-suggestions.tmpl @@ -48,14 +48,14 @@ $.tablesorter.addParser({ var alertString2; if(f.title.value.length ==0){ - _alertString += _("- You must enter a Title\n"); + _alertString += _("- You must enter a Title") + "\n"; } if (_alertString.length==0) { f.submit(); } else { - alertString2 = _("Form not submitted because of the following problem(s)\n"); - alertString2 += "------------------------------------------------------------------------------------\n\n"; + alertString2 = _("Form not submitted because of the following problem(s)"); + alertString2 += "\n------------------------------------------------------------------------------------\n\n"; alertString2 += _alertString; alert(alertString2); } -- 2.39.2