Skip to content
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.

[mod] dynamically set language_support variable #2499

Merged
merged 1 commit into from
Feb 1, 2021

Conversation

dalf
Copy link
Contributor

@dalf dalf commented Jan 24, 2021

What does this PR do?

The language_support variable is set to True by default,
and set to False in only 5 engines.

Except the documentation and the /config URL, this variable is not used.

This commit remove the variable definition in the engines, and
set value according to supported_languages length: False when the length is 0,
True otherwise.

Why is this change important?

This variable is misleading:

How to test this PR locally?

  • make docs : check the documentation.

Author's checklist

Related issues

Close #2485

@dalf dalf force-pushed the remove-language-support-variable branch 2 times, most recently from 622da67 to 284e75b Compare January 24, 2021 09:40
return42
return42 previously approved these changes Jan 24, 2021
Copy link
Contributor

@return42 return42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This variable is misleading:

made some spot checks: confirmed!

Thanks! ... do you like to merge right now?

@dalf dalf requested a review from asciimoo January 24, 2021 15:24
The language_support variable is set to True by default,
and set to False in only 5 engines.

Except the documentation and the /config URL, this variable is not used.

This commit remove the variable definition in the engines, and
set value according to supported_languages length: False when the length is 0,
True otherwise.

Close searx#2485
@dalf dalf force-pushed the remove-language-support-variable branch from 284e75b to ca93a01 Compare February 1, 2021 16:13
@dalf dalf merged commit 1742355 into searx:master Feb 1, 2021
@dalf dalf deleted the remove-language-support-variable branch February 1, 2021 16:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

useless language_support variable ?
2 participants