~esmail_almaleeh

Recent activity

[PATCH] simplytranslate_web: Changed outline color 2 months ago

From ManeraKai to ~metalune/public-inbox

From: ManeraKai <manerakai@protonmail.com>

---
 templates/index.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/templates/index.html b/templates/index.html
index 4879b4b..4dfdfea 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -77,7 +77,8 @@
        select:focus,
        textarea:focus,
        button:focus {
[message trimmed]

[PATCH] api/translate to POST 2 months ago

From ManeraKai to ~metalune/public-inbox

From: ManeraKai <manerakai@protonmail.com>

---
 main.py | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/main.py b/main.py
index 4ffd85c..f2513ed 100644
--- a/main.py
+++ b/main.py
@@ -68,12 +68,14 @@ async def translate(from_language, to_language, input_text):
    )


[message trimmed]

[PATCH] gtranslate: Switched to GET instead of POST for api 2 months ago

From ManeraKai to ~yerinalexey/public-inbox

From: ManeraKai <manerakai@protonmail.com>

---
 main.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.go b/main.go
index 8e94c27..128a747 100644
--- a/main.go
+++ b/main.go
@@ -63,7 +63,7 @@ func main() {
	r := mux.NewRouter()

	r.HandleFunc("/", CreateWebHandler(tmpl, &settings)).Methods("GET", "POST")
[message trimmed]

[PATCH] simplytranslate_web: Added documentation for api 2 months ago

From ManeraKai to ~metalune/public-inbox

From: ManeraKai <manerakai@protonmail.com>

---
 README.md   |  7 ++++--
 api.md      | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 config.conf |  3 +++
 3 files changed, 70 insertions(+), 2 deletions(-)
 create mode 100644 api.md

diff --git a/README.md b/README.md
index 4243bf9..66e703e 100644
--- a/README.md
+++ b/README.md
@@ -38,9 +38,12 @@ python3 main.py
[message trimmed]

[PATCH] simplytranslate_web: Fix get_languages typo in API 2 months ago

From ManeraKai to ~metalune/public-inbox

From: ManeraKai <manerakai@protonmail.com>

---
 main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.py b/main.py
index 2795dc0..b9eed57 100644
--- a/main.py
+++ b/main.py
@@ -80,7 +80,7 @@ async def api_get_languages():
    engine_name = request.args.get("engine")
    engine = get_engine(engine_name, engines, engines[0])

[message trimmed]

[PATCH] Added port and host to config 3 months ago

From ManeraKai to ~metalune/public-inbox

---
 config.conf | 4 ++++
 main.py     | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/config.conf b/config.conf
index 237d8fd..508a302 100644
--- a/config.conf
+++ b/config.conf
@@ -14,3 +14,7 @@ ApiKey = [REDACTED]
[google]
# Google translate is enabled by default.
Enabled = True

[message trimmed]

[PATCH] simplytranslate_web: Fix tts not working on firefox 3 months ago

From ManeraKai to ~metalune/public-inbox

---
 main.py | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/main.py b/main.py
index 7a7b170..350403c 100644
--- a/main.py
+++ b/main.py
@@ -1,6 +1,8 @@
from quart import Quart, render_template, request, redirect, make_response
from quart import Quart, render_template, request, redirect, make_response, send_file, Response
from configparser import ConfigParser
from urllib.parse import urlencode
from wsgiref.util import FileWrapper
[message trimmed]

Re: [PATCH 1/2] simplytranslate: Fixing SwitchButton with cookies 5 months ago

From Esmail Almaleeh to ~metalune/public-inbox

Really sorry, but there is a typo in my code. The first line in the 
changes has `sesssion` instead of `session`.

[PATCH 1/2] simplytranslate: Fixing SwitchButton with cookies 5 months ago

From Esmail Almaleeh to ~metalune/public-inbox

---
 main.py | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/main.py b/main.py
index da1d287..03714e9 100644
--- a/main.py
+++ b/main.py
@@ -64,6 +64,11 @@ async def switchlanguages():
        from_lang = to_lang
        to_lang = tmp_from_lang

    if session.get("from_lang") and sesssion.get('to_lang'):
        tmp_session_from_lang = session['from_lang']
[message trimmed]