summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2023-01-31 12:40:23 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2023-04-15 22:23:33 +0200
commitd5ecda99303f1555dc34d824f9dca662bbdda24e (patch)
tree558a23031685ad06864e4458ac4c261a8154e28d /.dir-locals.el
parentc03b0ea650e0a052e422881c6278a5c9a7cca60c (diff)
downloadsearxng-d5ecda99303f1555dc34d824f9dca662bbdda24e.tar.gz
searxng-d5ecda99303f1555dc34d824f9dca662bbdda24e.zip
[mod] move language recognition to get_search_query_from_webapp
To set the language from language recognition and hold the value selected by the client, the previous implementation creates a copy of the SearchQuery object and manipulates the SearchQuery object by calling function replace_auto_language(). This patch tries to implement a similar functionality in a more central place, in function get_search_query_from_webapp() when the SearchQuery object is build up. Additional this patch uses the language preferred by the client, if language recognition does not have a match / the existing implementation does not care about client preferences and uses 'all' in case of no match. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to '.dir-locals.el')
0 files changed, 0 insertions, 0 deletions