« Back to Search  |  Reader Mode  |  Switch to Full Retro Site View Links: Stay in Reader  |  Retro Mode: ON  |  Original »
docs.searxng.org · Extracted in 175 ms

Custom message extractor (i18n) - SearXNG Documentation (2026.12.6+8db8dcca1) Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode

Source: https://docs.searxng.org/src/searx.babel_extract.html

Custom message extractor (i18n)

This module implements the searxng_msg extractor to extract messages from:

The searxng.msg files are selected by Babel , see Babel's configuration in git://babel.cfg :

searxng_msg = searx.babel_extract.extract
...
[searxng_msg: **/searxng.msg]

A searxng.msg file is a python file that is executed by the extract function. Additional searxng.msg files can be added by:

  1. Adding a searxng.msg file in one of the SearXNG python packages and

  2. implement a method in extract that yields messages from this file.

searx.babel_extract. extract ( fileobj , keywords , comment_tags , options ) [source]

Extract messages from searxng.msg files by a custom extractor .