From 0be1d6448256e5317c6c6485d982c83a5c3bb045 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc=20V=C3=A9ron?= Date: Sat, 21 Nov 2015 01:31:00 +0100 Subject: [PATCH] Bug 15232: Advanced Cataloging Editor: Fix translation issues MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This patch makes koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc to comply with Coding guidlines to avoid translation issues: "JS3: Avoid strings which mix text and markup Text mustn't contain HTML tags." To test: - Apply patch - Verify that code changes are correct (html markup moved out of function _(...) ) - Bonus test: Enable syspref 'EnableAdvancedCatalogingEditor' and verify that it works as before With type fix from: Hector Castro Signed-off-by: Frédéric Demians Signed-off-by: Jonathan Druart Signed-off-by: Brendan A Gallagher (cherry picked from commit 36c06583298649843309a4fc8696b1c638e16740) Signed-off-by: Julian Maurice --- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index 443c0229a6..cc8817da30 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -559,7 +559,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr invalidateSearchResults(); Search.Reconnect(); } else { - humanMsg.displayMsg( _("

Internal search error

") + '

' + error + '

' + _("

Please refresh the page and try again."), { className: 'humanError' } ); + humanMsg.displayMsg( '

' + _("Internal search error") + '

' + error + '

' + _("Please refresh the page and try again.") + '

', { className: 'humanError' } ); } } @@ -948,7 +948,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr errors.push(error); } ); - humanMsg.displayMsg( _("

Failed to run macro:

") + '
  • ' + errors.join('
  • ') + '
', { className: 'humanError' } ); + humanMsg.displayMsg( '

' + _("Failed to run macro:") + '

  • ' + errors.join('
  • ') + '
', { className: 'humanError' } ); return false; } ); -- 2.39.5