summaryrefslogtreecommitdiff
path: root/babel.cfg
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-02-03 16:25:35 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2022-03-16 09:55:53 +0100
commitb9cf3c82a18a4782a3aa543c91392c6483f5d2a4 (patch)
treec072b9a295e6538b500bd93eed2109247824573a /babel.cfg
parentcd92a7eacdd6b4c333e57111e1503b8455628067 (diff)
downloadsearxng-b9cf3c82a18a4782a3aa543c91392c6483f5d2a4.tar.gz
searxng-b9cf3c82a18a4782a3aa543c91392c6483f5d2a4.zip
[mod] add i18n infrastructure for SearXNG message files (searxng.msg)
With this patch ``searxng.msg`` files can be added to SearXNG. In ``searxng.msg`` files messages can be defined which are not captured by babel's gettext, like the generic names of the categories or messages that are stored in constants. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'babel.cfg')
-rw-r--r--babel.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/babel.cfg b/babel.cfg
index 03bde6ca5..03913c256 100644
--- a/babel.cfg
+++ b/babel.cfg
@@ -1,4 +1,7 @@
+[extractors]
+searxng_msg = searx.babel_extract.extract
[ignore: **/node_modules/**]
[python: **.py]
[jinja2: **/templates/**.html]
extensions=jinja2.ext.autoescape,jinja2.ext.with_
+[searxng_msg: **/searxng.msg]