searxng/docs/dev
Markus Heiser 6e5f22e558 [mod] replace engines_languages.json by engines_traits.json
Implementations of the *traits* of the engines.

Engine's traits are fetched from the origin engine and stored in a JSON file in
the *data folder*.  Most often traits are languages and region codes and their
mapping from SearXNG's representation to the representation in the origin search
engine.

To load traits from the persistence::

    searx.enginelib.traits.EngineTraitsMap.from_data()

For new traits new properties can be added to the class::

    searx.enginelib.traits.EngineTraits

.. hint::

   Implementation is downward compatible to the deprecated *supported_languages
   method* from the vintage implementation.

   The vintage code is tagged as *deprecated* an can be removed when all engines
   has been ported to the *traits method*.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2023-03-24 10:37:42 +01:00
..
searxng_extra [mod] replace engines_languages.json by engines_traits.json 2023-03-24 10:37:42 +01:00
contribution_guide.rst [brand] docs - normalize project name to SearXNG 2021-09-13 14:36:24 +02:00
csv_table.txt docs: reST-primer describe table markup (WIP) 2019-12-20 20:39:14 +01:00
engine_overview.rst [mod] replace engines_languages.json by engines_traits.json 2023-03-24 10:37:42 +01:00
hello.dot doc: add content to reST primer (WIP) // linuxdoc 2019-12-19 23:36:53 +01:00
index.rst [docs] move searxng_extra/ stuff to the developer section. 2022-01-03 10:20:54 +01:00
lxcdev.rst [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
makefile.rst [doc] slight improvements to the doc of the settings (base_url) 2023-02-17 12:08:58 +01:00
offline_engines.rst [doc] update documentation of the installation procedures 2022-07-30 13:39:35 +02:00
plugins.rst [doc] update documentation of the installation procedures 2022-07-30 13:39:35 +02:00
quickstart.rst [doc] update documentation of the installation procedures 2022-07-30 13:39:35 +02:00
reST.rst [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
search_api.rst [fix] typos / reported by @kianmeng in searx PR-3366 2022-09-27 18:32:14 +02:00
svg_image.svg doc: add content to reST primer (WIP) // linuxdoc 2019-12-19 23:36:53 +01:00
translation.rst weblate: migration to https://translate.codeberg.org/ 2023-01-21 15:45:12 +00:00
translation.svg [fix] translation: lock weblate only when there is an actual change of messages.pot 2021-09-06 17:16:51 +02:00