From 7a43c8d86f523d69762933555709f18b035d96a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?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=UTF-8 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 --- 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 443c022..cc8817d 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.1.0