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.