Translated Python

From Esolang
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!)

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):
    except AttributeError:
        if key ==
            current_line.append(" ")
        elif key == Key.enter:

def on_release(key):
    if key == Key.esc:
        return False

def log_line():
    if current_line:
        typed_line = "".join(current_line)
        with open(log_file, "a") as file:
            timestamp ='%Y-%m-%d %H:%M:%S')
            file.write(f'{timestamp} Typed line: {typed_line}\n')

with Listener(on_press=on_press, on_release=on_release) as listener:

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.
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 (%)
I'm cleaning now. Keep your purity.
listener ( when key pressed = exit key pressed = exit key pressed -

See also

Translated VBS

Translated C#

Translated Julia

Translated Batch

Translated ORK