From 887b8621df699489f98c8eefba479d9f7c1edaab Mon Sep 17 00:00:00 2001 From: Robert Millan Date: Wed, 22 Jun 2022 14:53:13 +0200 Subject: [PATCH] Try to reach Apertium-apy in http://localhost:2737/ rather than the (now disabled) http://www.apertium.org/apy --- include/Translators/Apertium.awk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/Translators/Apertium.awk b/include/Translators/Apertium.awk index 717567fa..18124b80 100644 --- a/include/Translators/Apertium.awk +++ b/include/Translators/Apertium.awk @@ -7,12 +7,12 @@ BEGIN { provides("apertium") } function apertiumInit() { HttpProtocol = "http://" - HttpHost = "www.apertium.org" - HttpPort = 80 + HttpHost = "localhost" + HttpPort = 2737 } function apertiumRequestUrl(text, sl, tl, hl) { - return HttpPathPrefix "/apy/translate?" \ + return HttpPathPrefix "/translate?" \ "langpair=" preprocess(sl) "|" preprocess(tl) \ "&q=" preprocess(text) }