admin widget zu dokploy geswitched, viele übersetzungen im Frontend vervollständigt und Anlässe-Seiten mit ChatGPT ausgebaut

This commit is contained in:
Codex Agent
2025-11-19 13:12:35 +01:00
parent 125c624588
commit d8f365ddd6
30 changed files with 2820 additions and 293 deletions

19
translator.py Normal file
View File

@@ -0,0 +1,19 @@
import sys
import json
# Usage: python translator.py <target_lang>
# Expects JSON on stdin: {"text": "..."}
# For now, simple dictionary-based approximation / placeholder logic.
lang = sys.argv[1]
params = json.loads(sys.stdin.read())
text = params.get('text', '')
# TODO: Replace with proper translation logic or API call.
def fake_translate(text, lang):
if lang.lower().startswith('en'):
return text
# For example, a trivial & inaccurate mock transformation for demonstration.
return text[::-1]
print(json.dumps({"translation": fake_translate(text, lang)}))