From 7ff2b8d5e22e5333f51426c481bbfe83ae1ddc47 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 8 Nov 2017 10:06:30 -0300 Subject: [PATCH] Bug 17602: Ease translation Use String.format() to make translation easier Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 40fd499520..0bab09f1da 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -904,17 +904,17 @@ $(document).ready(function(){ } ); [% END %] [% IF ( RecordedBooksEnabled ) %] - var $recordedbooks_results = $( '
' + _( 'Searching RecordedBooks...' ) + '
' ); + var $recordedbooks_results = $( '
' + _( "Searching RecordedBooks..." ) + '
' ); $( '#numresults' ) .append( ' ' ) .append( $recordedbooks_results ); KOHA.RecordedBooks.search( querystring, [% OPACnumSearchResults || "null" %], null, function( data ) { if ( data.error ) { - $recordedbooks_results.html( _( 'Error searching RecordedBooks collection' ) + ': ' + data.error); + $recordedbooks_results.html( _( "Error searching RecordedBooks collection: %s" ).format( data.error ) ); return; } if ( data.total > 0 ) { - $recordedbooks_results.html( _( 'Found' ) + ' ' + data.total + ' ' + _( 'results' ) + ' ' + _( 'in RecordedBooks collection' ) ); + $recordedbooks_results.html( _( "Found %s results in RecordedBooks collection" ).format('' + data.total + '') ); } else { $recordedbooks_results.remove(); } -- 2.39.5