From 57adab44c19ac76f6d33303d7bd52ebb9135df87 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 --- 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 4ea5ad3baa..a171ae697f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -906,17 +906,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.11.0