From 451a2b3a7200f54a31a77794e899c24aaa709996 Mon Sep 17 00:00:00 2001 From: Roman Chutchev Date: Fri, 16 Oct 2026 07:00:57 +0300 Subject: [PATCH] Update translation API endpoint in functions.php --- Modules/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/functions.php b/Modules/functions.php index 9c2acbf..b41df9a 100644 --- a/Modules/functions.php +++ b/Modules/functions.php @@ -306,7 +306,7 @@ function translate($q) } else { $tl = "en"; } - $res = file_get_contents("https://translate.googleapis.com/translate_a/single?client=gtx&ie=UTF-8&oe=UTF-8&dt=bd&dt=ex&dt=ld&dt=md&dt=qca&dt=rw&dt=rm&dt=ss&dt=t&dt=at&sl=" . $lang . "&tl=" . $tl . "&hl=hl&q=" . urlencode($q), $_SERVER['DOCUMENT_ROOT'] . "/transes.html"); + $res = file_get_contents("https://clients5.google.com/translate_a/t?client=dict-chrome-ex&sl=" . $lang . "&tl=" . $tl . "&q=" . urlencode($q), $_SERVER['DOCUMENT_ROOT'] . "/transes.html"); $res = json_decode($res); - return $res[0][0][0]; + return $res[0]; }