Skip to content

Commit

Permalink
Merge pull request #4879 from camptocamp/GSGMF-950
Browse files Browse the repository at this point in the history
Translate the 'No result found' string in the search
  • Loading branch information
fredj authored May 8, 2019
2 parents 1344245 + df4446c commit 0e09ef0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contribs/gmf/src/search/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,9 @@ class SearchController {
const menu = this.element_.find('.twitter-typeahead .tt-menu');
const message = menu.children('.gmf-search-no-results');
if (message.length == 0) {
const div = $('<div class="gmf-search-no-results" translate>No result found</div>');
const gettextCatalog = this.gettextCatalog_;
const innerHTML = gettextCatalog.getString('No result found');
const div = $(`<div class="gmf-search-no-results" translate>${innerHTML}</div>`);
menu.append(div);
}
if (empty) {
Expand Down

0 comments on commit 0e09ef0

Please sign in to comment.