1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 08:45:56 +00:00

use DEFAULT_SEARCH_LANGUAGE to generate tsvector index if per-feed language is not specified, also use it as default value on search form for convenience

This commit is contained in:
Andrew Dolgov
2019-04-10 13:03:26 +03:00
parent 6768b3a4a3
commit c936cc3a1f
3 changed files with 17 additions and 2 deletions

View File

@@ -733,7 +733,7 @@ class Feeds extends Handler_Protected {
if (DB_TYPE == "pgsql") {
print "<fieldset>";
print "<label class='inline'>" . __("Language:") . "</label>";
print_select("search_language", "", Pref_Feeds::get_ts_languages(),
print_select("search_language", get_pref('DEFAULT_SEARCH_LANGUAGE'), Pref_Feeds::get_ts_languages(),
"dojoType='dijit.form.Select' title=\"".__('Used for word stemming')."\"");
print "</fieldset>";
}