.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, Optional[babel.Locale] locale=None) | |
locale_tag (self) | |
from_http_request (cls, flask.Request http_request) | |
Static Public Attributes | |
babel | locale .Locale |
Container to assemble client prefferences and settings.
Definition at line 322 of file preferences.py.
searx.preferences.ClientPref.__init__ | ( | self, | |
Optional[babel.Locale] | locale = None ) |
Definition at line 330 of file preferences.py.
References searx.preferences.ClientPref.locale, and searx.search.models.SearchQuery.locale.
searx.preferences.ClientPref.from_http_request | ( | cls, | |
flask.Request | http_request ) |
Build ClientPref object from HTTP request. - `Accept-Language used for locale setting <https://www.w3.org/International/questions/qa-accept-lang-locales.en>`__
Definition at line 343 of file preferences.py.
searx.preferences.ClientPref.locale_tag | ( | self | ) |
Definition at line 334 of file preferences.py.
References searx.preferences.ClientPref.locale, and searx.search.models.SearchQuery.locale.
|
static |
Definition at line 327 of file preferences.py.
Referenced by searx.preferences.ClientPref.__init__(), and searx.preferences.ClientPref.locale_tag().