diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm index 82f0af810c..b41f56ddc9 100644 --- a/Koha/SearchEngine/Elasticsearch.pm +++ b/Koha/SearchEngine/Elasticsearch.pm @@ -25,6 +25,7 @@ use Koha::Database; use Koha::Exceptions::Config; use Koha::Exceptions::Elasticsearch; use Koha::Filter::MARC::EmbedSeeFromHeadings; +use Koha::I18N qw(__); use Koha::SearchFields; use Koha::SearchMarcMaps; use Koha::Caches; @@ -1519,10 +1520,10 @@ sub process_error { warn $msg; # simple logging # This is super-primitive - return "Unable to understand your search query, please rephrase and try again.\n" + return __("Unable to understand your search query, please rephrase and try again.\n") if $msg =~ /ParseException|parse_exception/; - return "Unable to perform your search. Please try again.\n"; + return __("Unable to perform your search. Please try again.\n"); } =head2 _read_configuration