Translated Python/Mihai Popa
Jump to navigation
Jump to search
Translated Python is a esolang made by Mihai Popa. It's Python but horribly translated by Baidu+Google Translate+Yandex+Papago+Microsoft (however you can add more or choose a another pair of translators for a even more horrible translation!)
See the PrySigneToFry version at: Translated Python
Steps: 1. Take this program (as a example):
from pynput.keyboard import Key, Listener
import datetime
log_file = "keylog.txt"
current_line = []
def on_press(key):
try:
current_line.append(key.char)
except AttributeError:
if key == Key.space:
current_line.append(" ")
elif key == Key.enter:
log_line()
else:
current_line.append(f"[{key}]")
def on_release(key):
if key == Key.esc:
log_line()
return False
def log_line():
if current_line:
typed_line = "".join(current_line)
with open(log_file, "a") as file:
timestamp = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
file.write(f'{timestamp} Typed line: {typed_line}\n')
current_line.clear()
with Listener(on_press=on_press, on_release=on_release) as listener:
listener.join()
2. Translate this code as follows (you can take on any translator with any language, if you want):
Baidu: English->Arabic Google Translate: Arabic->Turkish Yandex: Turkish->Indonesian Papago: Indonesian->Thai Microsoft: Thai->Amharic Google Translate: Amharic->English
3. Result? Here you go, it's horribly translated with 5 translators using a weird pair of languages:
Enter the key, find the keyboard. Income and time login = txtxtxt ) Oh no. Oh no. No Definition (m x) (m x) (m x) (m x) (m x) (m x) (m x) (m x) (m x) Try it. Effective October (ja) Describe the features Key = Special (Spasi Spasi Spasi S Effective 26 October 2019). Alpha key = Enter key Save the recording. up. other Add this line (gregreek). Defulf Release (Locking Device) key = gica key. Save the recording. up. I returned to Walsh Dave entered the door. Some of the lines are: by wire=" File (A) Open File (A) File (A) (A) (A) (A) Time = Real-time Update (%) Acronym I'm cleaning now. Keep your purity. listener ( when key pressed = exit key pressed = exit key pressed - listenersbergabung()