Using the search submodule of display search, the suggestions for empty search results are not translated into german. Instead, the english suggestions are displayed:

  • Check if your spelling is correct.
  • Remove quotes around phrases to search for each word individually. bike shed will often show more results than "bike shed".
  • Consider loosening your query with OR. bike OR shed will often show more results than bike shed.

Therefore, I suggest the following change in ds_search.module ( line 67 )

old:


$build['search_empty'] = array('#markup' => t('<ul><li>Check if your spelling is correct.</li><li>Remove quotes around phrases to search for each word individually. <em>bike shed</em> will often show more results than <em>&quot;bike shed&quot;</em>.</li><li>Consider loosening your query with <em>OR</em>. <em>bike OR shed</em> will often show more results than <em>bike shed</em>.</li></ul>'));

new:

$build['search_empty'] = array('#markup' => search_help('search#noresults', drupal_help_arg()));

CommentFileSizeAuthor
#1 2053679-1.patch859 bytesswentel

Comments

swentel’s picture

Version: 7.x-2.4 » 8.x-2.x-dev
Status: Needs review » Patch (to be ported)
StatusFileSize
new859 bytes

Right, makes sense, committed and pushed in 7.x-2.x, moving to 8.x-2.x for fixing it there too.

swentel’s picture

Status: Patch (to be ported) » Closed (fixed)

committed and pushed to 8.x-2.x

swentel’s picture

Issue summary: View changes

better description