.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, babel.Locale|None locale=None) | |
locale_tag (self) | |
from_http_request (cls, SXNG_Request http_request) |
Static Public Attributes | |
babel | locale .Locale | None |
Container to assemble client prefferences and settings.
Definition at line 339 of file preferences.py.
searx.preferences.ClientPref.__init__ | ( | self, | |
babel.Locale | None | locale = None ) |
Definition at line 347 of file preferences.py.
References locale.
searx.preferences.ClientPref.from_http_request | ( | cls, | |
SXNG_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 360 of file preferences.py.
searx.preferences.ClientPref.locale_tag | ( | self | ) |
Definition at line 351 of file preferences.py.
References locale.
|
static |
Definition at line 344 of file preferences.py.
Referenced by __init__(), and locale_tag().