diff options
| author | Bnyro <bnyro@tutanota.com> | 2024-10-15 15:39:14 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarIT.de> | 2025-01-28 07:07:08 +0100 |
| commit | 9079d0cac0156139952446f0fdc8b37b94c10756 (patch) | |
| tree | 0164ae5b30d173cda9e60ea8048b16033b2029cc /searx/templates/simple/answerers/translate.html | |
| parent | 70f1b6500861970f8b9e52fbfe52a1796350ea69 (diff) | |
[refactor] translation engines: common interface
Diffstat (limited to 'searx/templates/simple/answerers/translate.html')
| -rw-r--r-- | searx/templates/simple/answerers/translate.html | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/searx/templates/simple/answerers/translate.html b/searx/templates/simple/answerers/translate.html new file mode 100644 index 000000000..a1c38eecf --- /dev/null +++ b/searx/templates/simple/answerers/translate.html @@ -0,0 +1,38 @@ +<div class="answer-translations"> +{% for translation in translations %} + {% if loop.index > 1 %} + <hr /> + {% endif %} + <h3>{{ translation.text }}</h3> + {% if translation.transliteration %} + <b>translation.transliteration</b> + {% endif %} {% if translation.definitions %} + <dl> + <dt>{{ _('Definitions') }}</dt> + <ul> + {% for definition in translation.definitions %} + <li>{{ definition }}</li> + {% endfor %} + <ul> + </dl> + {% endif %} {% if translation.examples %} + <dl> + <dt>{{ _('Examples') }}</dt> + <ul> + {% for example in translation.examples %} + <li>{{ example }}</li> + {% endfor %} + </ul> + </dl> + {% endif %} {% if translation.synonyms %} + <dl> + <dt>{{ _('Synonyms') }}</dt> + <ul> + {% for synonym in translation.synonyms %} + <li>{{ synonym }}</li> + {% endfor %} + </ul> + </dl> + {% endif %} +{% endfor %} +</div> |