commit 4e4ec6116f0b6df5443d5388e74df114e72bb488
parent 564c2a5f6b4a8eb21babe5ed43d00de6c263f2f7
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sat, 21 Mar 2026 12:24:56 +0100
feat: switch mirror for libretranslate; add additional keyword for CD
Diffstat:
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/config/config.php b/config/config.php
@@ -34,7 +34,7 @@ $searches = array(
"website" => "https://dictionary.cambridge.org",
"query" => "https://dictionary.cambridge.org/search/english/direct/?q=%s",
"categories" => array("lang"),
- "keywords" => array("cd", "cambridge", "eng", "uk"),
+ "keywords" => array("cd", "cambridge", "eng", "uk", "en"),
"description" => "Cambridge University Press has been publishing dictionaries for learners of English since 1995. Cambridge Dictionaries Online began offering these dictionaries completely free of charge in 1999"
),
"codeberg" => array(
@@ -264,12 +264,13 @@ $searches = array(
"description" => "An Internet-based and community-driven translation dictionary originating from the computer science department of the Technical University of Munich in Germany and run by the Leo GmbH since 2006. Translation languages can be choosen via !leo:englisch-deutsch"
),
"libretranslate" => array(
- "name" => "LibreTranslate",
- "website" => "https://libretranslate.com",
- "query" => "https://libretranslate.com/?q=%s",
+ "name" => "LibreTranslate (Disroot)",
+ "website" => "https://translate.disroot.org/",
+ "query" => "https://translate.disroot.org/?q=%s&target=%opt",
+ "default_opts" => substr($_SERVER["HTTP_ACCEPT_LANGUAGE"], 0, 2),
"categories" => array("lang", "foss"),
"keywords" => array("libretranslate", "translate", "lt", "tl"),
- "description" => "Free and Open Source Machine Translation, which is powered by the open source Argos Translate library"
+ "description" => "Free and Open Source Machine Translation, which is powered by the open source Argos Translate library. Target language can be choosen with the option parameter, for example translation to english with \"!libretranslate:en\". Version hosted by Disroot, due to API-restrictions."
),
"mastodon" => array(
"name" => "Mastodon",