From db2ad9402a0d1e2a0777fa3adf0042591cc34926 Mon Sep 17 00:00:00 2001 From: Garvin Hicking Date: Mon, 24 Aug 2009 08:24:19 +0000 Subject: [PATCH] * Allow to define sort order for search-results (garvinhicking) --- docs/NEWS | 2 ++ include/functions_entries.inc.php | 20 ++++++++++++++++++-- include/tpl/config_local.inc.php | 7 +++++++ lang/UTF-8/plugin_lang.php | 4 ++++ lang/UTF-8/serendipity_lang_bg.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_cn.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_da.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_de.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_en.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_es.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_fa.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_fi.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_fr.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_hu.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_is.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_it.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_ja.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_ko.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_nl.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_no.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_pl.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_pt.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_pt_PT.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_ro.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_ru.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_sa.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_se.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_ta.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_tn.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_tr.inc.php | 4 ++++ lang/UTF-8/serendipity_lang_tw.inc.php | 6 +++++- lang/UTF-8/serendipity_lang_zh.inc.php | 6 +++++- lang/addlang.txt | 2 +- lang/plugin_lang.php | 4 ++++ lang/serendipity_lang_bg.inc.php | 4 ++++ lang/serendipity_lang_cn.inc.php | 4 ++++ lang/serendipity_lang_da.inc.php | 4 ++++ lang/serendipity_lang_de.inc.php | 4 ++++ lang/serendipity_lang_en.inc.php | 4 ++++ lang/serendipity_lang_es.inc.php | 4 ++++ lang/serendipity_lang_fa.inc.php | 4 ++++ lang/serendipity_lang_fi.inc.php | 4 ++++ lang/serendipity_lang_fr.inc.php | 4 ++++ lang/serendipity_lang_hu.inc.php | 4 ++++ lang/serendipity_lang_is.inc.php | 4 ++++ lang/serendipity_lang_it.inc.php | 4 ++++ lang/serendipity_lang_ja.inc.php | 4 ++++ lang/serendipity_lang_ko.inc.php | 4 ++++ lang/serendipity_lang_nl.inc.php | 4 ++++ lang/serendipity_lang_no.inc.php | 4 ++++ lang/serendipity_lang_pl.inc.php | 4 ++++ lang/serendipity_lang_pt.inc.php | 4 ++++ lang/serendipity_lang_pt_PT.inc.php | 4 ++++ lang/serendipity_lang_ro.inc.php | 4 ++++ lang/serendipity_lang_ru.inc.php | 4 ++++ lang/serendipity_lang_sa.inc.php | 4 ++++ lang/serendipity_lang_se.inc.php | 4 ++++ lang/serendipity_lang_ta.inc.php | 4 ++++ lang/serendipity_lang_tn.inc.php | 4 ++++ lang/serendipity_lang_tr.inc.php | 4 ++++ lang/serendipity_lang_tw.inc.php | 4 ++++ lang/serendipity_lang_zh.inc.php | 4 ++++ 62 files changed, 278 insertions(+), 21 deletions(-) diff --git a/docs/NEWS b/docs/NEWS index f502c18f..ea400ba2 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -5,6 +5,8 @@ Version 1.5 () * Allow redirects when fetching remote images (garvinhicking) + * Allow to define sort order for search-results (garvinhicking) + -- beta1 release * PHP 5.3.0 compatibility without E_WARNING triggers (garvinhicking) diff --git a/include/functions_entries.inc.php b/include/functions_entries.inc.php index 33df7dcd..462e6a44 100644 --- a/include/functions_entries.inc.php +++ b/include/functions_entries.inc.php @@ -750,6 +750,7 @@ function &serendipity_searchEntries($term, $limit = '', $searchresults = '') { $term = serendipity_db_escape_string($term); $cond = array(); + $relevance_enabled = false; if ($serendipity['dbType'] == 'postgres' || $serendipity['dbType'] == 'pdo-postgres') { $cond['group'] = ''; @@ -780,6 +781,7 @@ function &serendipity_searchEntries($term, $limit = '', $searchresults = '') { $cond['group'] = 'GROUP BY e.id'; $cond['distinct'] = ''; $term = str_replace('"', '"', $term); + $relevance_enabled = true; if (preg_match('@["\+\-\*~<>\(\)]+@', $term)) { $cond['find_part'] = "MATCH(title,body,extended) AGAINST('$term' IN BOOLEAN MODE)"; } else { @@ -787,7 +789,21 @@ function &serendipity_searchEntries($term, $limit = '', $searchresults = '') { } } - $cond['orderby'] = "timestamp DESC"; + switch($serendipity['searchsort']) { + case 'relevance': + if ($relevance_enabled) { + $cond['searchorderby'] = $cond['find_part'] . " DESC"; + } else { + $cond['searchorderby'] = "timestamp DESC"; + } + break; + + case 'timestamp': + default: + $cond['searchorderby'] = "timestamp DESC"; + break; + } + $cond['and'] = " AND isdraft = 'false' " . (!serendipity_db_bool($serendipity['showFutureEntries']) ? " AND timestamp <= " . serendipity_db_time() : ''); serendipity_plugin_api::hook_event('frontend_fetchentries', $cond, array('source' => 'search', 'term' => $term)); serendipity_ACL_SQL($cond, 'limited'); @@ -824,7 +840,7 @@ function &serendipity_searchEntries($term, $limit = '', $searchresults = '') { {$serendipity['fullCountQuery']} {$cond['group']} {$cond['having']} - ORDER BY {$cond['orderby']} + ORDER BY {$cond['searchorderby']} $limit"; $search =& serendipity_db_query($querystring); diff --git a/include/tpl/config_local.inc.php b/include/tpl/config_local.inc.php index 55f3153f..8bfd5460 100644 --- a/include/tpl/config_local.inc.php +++ b/include/tpl/config_local.inc.php @@ -417,6 +417,13 @@ 'default' => 15, 'permission' => 'blogConfiguration'), + array('var' => 'searchsort', + 'title' => QUICKSEARCH_SORT, + 'description' => '', + 'type' => 'list', + 'default' => array('timestamp' => DATE, 'relevance' => QUICKSEARCH_SORT_RELEVANCE), + 'permission' => 'blogConfiguration'), + array('var' => 'enforce_RFC2616', 'title' => SYNDICATION_RFC2616, 'description' => SYNDICATION_RFC2616_DESC, diff --git a/lang/UTF-8/plugin_lang.php b/lang/UTF-8/plugin_lang.php index 3840a9d4..81e69e87 100644 --- a/lang/UTF-8/plugin_lang.php +++ b/lang/UTF-8/plugin_lang.php @@ -139,3 +139,7 @@ foreach($const['missing'] AS $file => $constants) { @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_bg.inc.php b/lang/UTF-8/serendipity_lang_bg.inc.php index 3411f8db..8a6509cd 100644 --- a/lang/UTF-8/serendipity_lang_bg.inc.php +++ b/lang/UTF-8/serendipity_lang_bg.inc.php @@ -944,3 +944,7 @@ $i18n_filename_to = array('-', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_cn.inc.php b/lang/UTF-8/serendipity_lang_cn.inc.php index 3707825a..01017ae6 100644 --- a/lang/UTF-8/serendipity_lang_cn.inc.php +++ b/lang/UTF-8/serendipity_lang_cn.inc.php @@ -1,4 +1,4 @@ - @@ -950,3 +950,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_de.inc.php b/lang/UTF-8/serendipity_lang_de.inc.php index b855cf6e..98163051 100644 --- a/lang/UTF-8/serendipity_lang_de.inc.php +++ b/lang/UTF-8/serendipity_lang_de.inc.php @@ -1,4 +1,4 @@ -, @@ -969,3 +969,7 @@ Melvin TODO [20060128]: What spanish word do we use for "referrers" ?? @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_fa.inc.php b/lang/UTF-8/serendipity_lang_fa.inc.php index b10e1cbc..d11e574b 100644 --- a/lang/UTF-8/serendipity_lang_fa.inc.php +++ b/lang/UTF-8/serendipity_lang_fa.inc.php @@ -1,4 +1,4 @@ - @@ -953,3 +953,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_fi.inc.php b/lang/UTF-8/serendipity_lang_fi.inc.php index a4d46e9f..42349500 100644 --- a/lang/UTF-8/serendipity_lang_fi.inc.php +++ b/lang/UTF-8/serendipity_lang_fi.inc.php @@ -1,4 +1,4 @@ - @@ -951,3 +951,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_fr.inc.php b/lang/UTF-8/serendipity_lang_fr.inc.php index d641702a..07a62e31 100644 --- a/lang/UTF-8/serendipity_lang_fr.inc.php +++ b/lang/UTF-8/serendipity_lang_fr.inc.php @@ -1,4 +1,4 @@ - @@ -958,3 +958,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_hu.inc.php b/lang/UTF-8/serendipity_lang_hu.inc.php index 1257e434..1142578c 100644 --- a/lang/UTF-8/serendipity_lang_hu.inc.php +++ b/lang/UTF-8/serendipity_lang_hu.inc.php @@ -949,3 +949,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_is.inc.php b/lang/UTF-8/serendipity_lang_is.inc.php index 56119449..63729577 100644 --- a/lang/UTF-8/serendipity_lang_is.inc.php +++ b/lang/UTF-8/serendipity_lang_is.inc.php @@ -1,4 +1,4 @@ - @@ -952,3 +952,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_it.inc.php b/lang/UTF-8/serendipity_lang_it.inc.php index 7185fe1b..dc26f10e 100644 --- a/lang/UTF-8/serendipity_lang_it.inc.php +++ b/lang/UTF-8/serendipity_lang_it.inc.php @@ -955,3 +955,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_ja.inc.php b/lang/UTF-8/serendipity_lang_ja.inc.php index a1d00024..5524d327 100644 --- a/lang/UTF-8/serendipity_lang_ja.inc.php +++ b/lang/UTF-8/serendipity_lang_ja.inc.php @@ -1,4 +1,4 @@ -, 2004-2005. @@ -955,3 +955,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_ko.inc.php b/lang/UTF-8/serendipity_lang_ko.inc.php index f4440fe8..fb6c9634 100644 --- a/lang/UTF-8/serendipity_lang_ko.inc.php +++ b/lang/UTF-8/serendipity_lang_ko.inc.php @@ -1,4 +1,4 @@ - @@ -954,3 +954,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_nl.inc.php b/lang/UTF-8/serendipity_lang_nl.inc.php index 50a11ca6..9370ed3d 100644 --- a/lang/UTF-8/serendipity_lang_nl.inc.php +++ b/lang/UTF-8/serendipity_lang_nl.inc.php @@ -1,4 +1,4 @@ - @@ -953,3 +953,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_no.inc.php b/lang/UTF-8/serendipity_lang_no.inc.php index bf46244e..4de91696 100644 --- a/lang/UTF-8/serendipity_lang_no.inc.php +++ b/lang/UTF-8/serendipity_lang_no.inc.php @@ -1,4 +1,4 @@ - @@ -954,3 +954,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_pl.inc.php b/lang/UTF-8/serendipity_lang_pl.inc.php index bb2c1a16..4513233c 100644 --- a/lang/UTF-8/serendipity_lang_pl.inc.php +++ b/lang/UTF-8/serendipity_lang_pl.inc.php @@ -950,3 +950,7 @@ $i18n_filename_to = array('_', 'a', 'A', 'a', 'A', 'b', 'B', 'c', 'C', 'c', 'C @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_pt.inc.php b/lang/UTF-8/serendipity_lang_pt.inc.php index fd1a8966..fefa4055 100644 --- a/lang/UTF-8/serendipity_lang_pt.inc.php +++ b/lang/UTF-8/serendipity_lang_pt.inc.php @@ -1,4 +1,4 @@ - @@ -956,3 +956,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_pt_PT.inc.php b/lang/UTF-8/serendipity_lang_pt_PT.inc.php index 1a36f861..4eb59470 100644 --- a/lang/UTF-8/serendipity_lang_pt_PT.inc.php +++ b/lang/UTF-8/serendipity_lang_pt_PT.inc.php @@ -963,3 +963,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_ro.inc.php b/lang/UTF-8/serendipity_lang_ro.inc.php index 5bf867d2..0552e2be 100644 --- a/lang/UTF-8/serendipity_lang_ro.inc.php +++ b/lang/UTF-8/serendipity_lang_ro.inc.php @@ -952,3 +952,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_ru.inc.php b/lang/UTF-8/serendipity_lang_ru.inc.php index 7593d9d3..892c1ce3 100644 --- a/lang/UTF-8/serendipity_lang_ru.inc.php +++ b/lang/UTF-8/serendipity_lang_ru.inc.php @@ -1,4 +1,4 @@ - @@ -955,3 +955,7 @@ $i18n_filename_to = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_sa.inc.php b/lang/UTF-8/serendipity_lang_sa.inc.php index fd653542..111ad4b7 100644 --- a/lang/UTF-8/serendipity_lang_sa.inc.php +++ b/lang/UTF-8/serendipity_lang_sa.inc.php @@ -870,3 +870,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_se.inc.php b/lang/UTF-8/serendipity_lang_se.inc.php index 8f8f8efe..2ada5bf7 100644 --- a/lang/UTF-8/serendipity_lang_se.inc.php +++ b/lang/UTF-8/serendipity_lang_se.inc.php @@ -951,3 +951,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_ta.inc.php b/lang/UTF-8/serendipity_lang_ta.inc.php index e1fdcf46..c6ecf348 100644 --- a/lang/UTF-8/serendipity_lang_ta.inc.php +++ b/lang/UTF-8/serendipity_lang_ta.inc.php @@ -951,3 +951,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_tn.inc.php b/lang/UTF-8/serendipity_lang_tn.inc.php index 39e930ee..901ad170 100644 --- a/lang/UTF-8/serendipity_lang_tn.inc.php +++ b/lang/UTF-8/serendipity_lang_tn.inc.php @@ -1,4 +1,4 @@ - @@ -955,3 +955,7 @@ $i18n_unknown = 'tw'; @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_tr.inc.php b/lang/UTF-8/serendipity_lang_tr.inc.php index 94290950..31fff020 100644 --- a/lang/UTF-8/serendipity_lang_tr.inc.php +++ b/lang/UTF-8/serendipity_lang_tr.inc.php @@ -955,3 +955,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_tw.inc.php b/lang/UTF-8/serendipity_lang_tw.inc.php index 2b81e11a..e7371ad7 100644 --- a/lang/UTF-8/serendipity_lang_tw.inc.php +++ b/lang/UTF-8/serendipity_lang_tw.inc.php @@ -1,4 +1,4 @@ - @@ -956,3 +956,7 @@ $i18n_unknown = 'tw'; @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/UTF-8/serendipity_lang_zh.inc.php b/lang/UTF-8/serendipity_lang_zh.inc.php index 5c089c2b..a7a8810e 100644 --- a/lang/UTF-8/serendipity_lang_zh.inc.php +++ b/lang/UTF-8/serendipity_lang_zh.inc.php @@ -1,4 +1,4 @@ - $constants) { @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_bg.inc.php b/lang/serendipity_lang_bg.inc.php index 27a15c1e..2b0f1558 100644 --- a/lang/serendipity_lang_bg.inc.php +++ b/lang/serendipity_lang_bg.inc.php @@ -944,3 +944,7 @@ $i18n_filename_to = array('-', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_cn.inc.php b/lang/serendipity_lang_cn.inc.php index 7defe7e9..0bad11b0 100644 --- a/lang/serendipity_lang_cn.inc.php +++ b/lang/serendipity_lang_cn.inc.php @@ -953,3 +953,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_da.inc.php b/lang/serendipity_lang_da.inc.php index 30ee0ddb..604e1e74 100644 --- a/lang/serendipity_lang_da.inc.php +++ b/lang/serendipity_lang_da.inc.php @@ -950,3 +950,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_de.inc.php b/lang/serendipity_lang_de.inc.php index 738c1eaf..5ab867c0 100644 --- a/lang/serendipity_lang_de.inc.php +++ b/lang/serendipity_lang_de.inc.php @@ -953,3 +953,7 @@ @define('MEDIA_PROPERTY_ALT', 'Bildinhalt (Zusammenfassung für das ALT-Attribut)'); @define('MEDIA_TITLE', 'TITLE-Attribut (wird beim Überfahren mit der Maus angezeigt)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_en.inc.php b/lang/serendipity_lang_en.inc.php index 8941cf5e..deb3d427 100644 --- a/lang/serendipity_lang_en.inc.php +++ b/lang/serendipity_lang_en.inc.php @@ -951,3 +951,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_es.inc.php b/lang/serendipity_lang_es.inc.php index 4694477f..cb953404 100644 --- a/lang/serendipity_lang_es.inc.php +++ b/lang/serendipity_lang_es.inc.php @@ -969,3 +969,7 @@ Melvin TODO [20060128]: What spanish word do we use for "referrers" ?? @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_fa.inc.php b/lang/serendipity_lang_fa.inc.php index 42e39ad5..08e55964 100644 --- a/lang/serendipity_lang_fa.inc.php +++ b/lang/serendipity_lang_fa.inc.php @@ -953,3 +953,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_fi.inc.php b/lang/serendipity_lang_fi.inc.php index 06fec7ec..8859b945 100644 --- a/lang/serendipity_lang_fi.inc.php +++ b/lang/serendipity_lang_fi.inc.php @@ -951,3 +951,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_fr.inc.php b/lang/serendipity_lang_fr.inc.php index cead377a..c21d6000 100644 --- a/lang/serendipity_lang_fr.inc.php +++ b/lang/serendipity_lang_fr.inc.php @@ -958,3 +958,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_hu.inc.php b/lang/serendipity_lang_hu.inc.php index 69a2426c..58411bb6 100644 --- a/lang/serendipity_lang_hu.inc.php +++ b/lang/serendipity_lang_hu.inc.php @@ -949,3 +949,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_is.inc.php b/lang/serendipity_lang_is.inc.php index f87f25ac..910caf22 100644 --- a/lang/serendipity_lang_is.inc.php +++ b/lang/serendipity_lang_is.inc.php @@ -952,3 +952,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_it.inc.php b/lang/serendipity_lang_it.inc.php index 2ca985e2..7d455362 100644 --- a/lang/serendipity_lang_it.inc.php +++ b/lang/serendipity_lang_it.inc.php @@ -955,3 +955,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_ja.inc.php b/lang/serendipity_lang_ja.inc.php index 4212fd27..873f1041 100644 --- a/lang/serendipity_lang_ja.inc.php +++ b/lang/serendipity_lang_ja.inc.php @@ -955,3 +955,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_ko.inc.php b/lang/serendipity_lang_ko.inc.php index 9e0a8f40..200c8efa 100644 --- a/lang/serendipity_lang_ko.inc.php +++ b/lang/serendipity_lang_ko.inc.php @@ -954,3 +954,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_nl.inc.php b/lang/serendipity_lang_nl.inc.php index 0aaf3f7c..b9f8dc79 100644 --- a/lang/serendipity_lang_nl.inc.php +++ b/lang/serendipity_lang_nl.inc.php @@ -953,3 +953,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_no.inc.php b/lang/serendipity_lang_no.inc.php index 26e77077..bfe952a6 100644 --- a/lang/serendipity_lang_no.inc.php +++ b/lang/serendipity_lang_no.inc.php @@ -954,3 +954,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_pl.inc.php b/lang/serendipity_lang_pl.inc.php index 9a15a81c..d3ff5d92 100644 --- a/lang/serendipity_lang_pl.inc.php +++ b/lang/serendipity_lang_pl.inc.php @@ -950,3 +950,7 @@ $i18n_filename_to = array('_', 'a', 'A', 'a', 'A', 'b', 'B', 'c', 'C', 'c', 'C @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_pt.inc.php b/lang/serendipity_lang_pt.inc.php index 8e1226f8..28c66309 100644 --- a/lang/serendipity_lang_pt.inc.php +++ b/lang/serendipity_lang_pt.inc.php @@ -956,3 +956,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_pt_PT.inc.php b/lang/serendipity_lang_pt_PT.inc.php index 0ba79559..f4310ddc 100644 --- a/lang/serendipity_lang_pt_PT.inc.php +++ b/lang/serendipity_lang_pt_PT.inc.php @@ -963,3 +963,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_ro.inc.php b/lang/serendipity_lang_ro.inc.php index 5bf867d2..0552e2be 100644 --- a/lang/serendipity_lang_ro.inc.php +++ b/lang/serendipity_lang_ro.inc.php @@ -952,3 +952,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_ru.inc.php b/lang/serendipity_lang_ru.inc.php index 4058e156..4c6ff5cc 100644 --- a/lang/serendipity_lang_ru.inc.php +++ b/lang/serendipity_lang_ru.inc.php @@ -955,3 +955,7 @@ $i18n_filename_to = array('_', 'a', 'A', 'b', 'B', 'v', 'V', 'g', 'G', 'd', 'D @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_sa.inc.php b/lang/serendipity_lang_sa.inc.php index fc1b0dd2..effc3349 100644 --- a/lang/serendipity_lang_sa.inc.php +++ b/lang/serendipity_lang_sa.inc.php @@ -870,3 +870,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_se.inc.php b/lang/serendipity_lang_se.inc.php index 601591ff..2a3ccba1 100644 --- a/lang/serendipity_lang_se.inc.php +++ b/lang/serendipity_lang_se.inc.php @@ -951,3 +951,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_ta.inc.php b/lang/serendipity_lang_ta.inc.php index e1fdcf46..c6ecf348 100644 --- a/lang/serendipity_lang_ta.inc.php +++ b/lang/serendipity_lang_ta.inc.php @@ -951,3 +951,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_tn.inc.php b/lang/serendipity_lang_tn.inc.php index b9d59209..e0945210 100644 --- a/lang/serendipity_lang_tn.inc.php +++ b/lang/serendipity_lang_tn.inc.php @@ -955,3 +955,7 @@ $i18n_unknown = 'tw'; @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_tr.inc.php b/lang/serendipity_lang_tr.inc.php index 94290950..31fff020 100644 --- a/lang/serendipity_lang_tr.inc.php +++ b/lang/serendipity_lang_tr.inc.php @@ -955,3 +955,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_tw.inc.php b/lang/serendipity_lang_tw.inc.php index 1227a33c..9d151c28 100644 --- a/lang/serendipity_lang_tw.inc.php +++ b/lang/serendipity_lang_tw.inc.php @@ -956,3 +956,7 @@ $i18n_unknown = 'tw'; @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); + diff --git a/lang/serendipity_lang_zh.inc.php b/lang/serendipity_lang_zh.inc.php index 5b0d820e..a84a51ef 100644 --- a/lang/serendipity_lang_zh.inc.php +++ b/lang/serendipity_lang_zh.inc.php @@ -952,3 +952,7 @@ @define('MEDIA_TITLE', 'TITLE-Attribute (will be displayed on mouse over)'); +@define('QUICKSEARCH_SORT', 'How should search-results be sorted?'); + +@define('QUICKSEARCH_SORT_RELEVANCE', 'Relevance'); +