summaryrefslogtreecommitdiff
path: root/searx/locales.py
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-06-14 16:31:41 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-06-14 16:31:41 +0200
commitef4239c68a42bd55b7af58e347a6d2e98b200928 (patch)
tree0ffa030c2d7aeaad05c2942d72a3c7e2d53fe62a /searx/locales.py
parent7bc3d17b1196f6169b7f98008aa8ec34963ed55b (diff)
downloadsearxng-ef4239c68a42bd55b7af58e347a6d2e98b200928.tar.gz
searxng-ef4239c68a42bd55b7af58e347a6d2e98b200928.zip
[doc] fix some leftovers from ad964562c
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/locales.py')
-rw-r--r--searx/locales.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/searx/locales.py b/searx/locales.py
index fbdf305ad..f96ae5c05 100644
--- a/searx/locales.py
+++ b/searx/locales.py
@@ -72,7 +72,7 @@ def localeselector():
def get_translations():
- """Monkey patch of flask_babel.get_translations"""
+ """Monkey patch of :py:obj:`flask_babel.get_translations`"""
if has_request_context() and flask.request.form.get('use-translation') == 'oc':
babel_ext = flask_babel.current_app.extensions['babel']
return Translations.load(next(babel_ext.translation_directories), 'oc')
@@ -117,7 +117,7 @@ def _get_locale_descr(locale, language_code):
def locales_initialize(directory=None):
"""Initialize locales environment of the SearXNG session.
- - monkey patch :py:obj:`flask_babel.get_translations` by :obj:py:`get_translations`
+ - monkey patch :py:obj:`flask_babel.get_translations` by :py:obj:`get_translations`
- init global names :py:obj:`LOCALE_NAMES`, :py:obj:`RTL_LOCALES`
"""