Bug 17602: Ease translation
Use String.format() to make translation easier Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
8cb8223e12
commit
7ff2b8d5e2
|
|
@ -904,17 +904,17 @@ $(document).ready(function(){
|
|||
} );
|
||||
[% END %]
|
||||
[% IF ( RecordedBooksEnabled ) %]
|
||||
var $recordedbooks_results = $( '<div id="recordedbooks-results">' + _( 'Searching RecordedBooks...' ) + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
|
||||
var $recordedbooks_results = $( '<div id="recordedbooks-results">' + _( "Searching RecordedBooks..." ) + ' <img class="throbber" src="[% interface %]/lib/jquery/plugins/themes/classic/throbber.gif" /></div>' );
|
||||
$( '#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' ) + ' <a href="/cgi-bin/koha/opac-recordedbooks-search.pl?q=' + escape( querystring ) + '">' + data.total + ' ' + _( 'results' ) + '</a> ' + _( 'in RecordedBooks collection' ) );
|
||||
$recordedbooks_results.html( _( "Found %s results in RecordedBooks collection" ).format('<a href="/cgi-bin/koha/opac-recordedbooks-search.pl?q=' + escape( querystring ) + '">' + data.total + '</a>') );
|
||||
} else {
|
||||
$recordedbooks_results.remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue