A program to allow you to write python code in any language. The basic python language is translated and ready for offline use. You can add your own languages. Non standard-libraries are sadly not supported. Yet!!
In order to train a new language use the Wikipedia list of ISO-codes
The codes must be supported by Google Translate
Train new languages by:
cd languages
python3 map_generator.py
- enter the language code you want to train.
You can generate new examples with the make_examples.py
file.
- Write source code in your natural language.
- The first line of the source code must be
# lang_code
- The
lang_code
must be supported by translate.google.com - The
lang_code
must have a mapping present in the languages folder. - Run with
./pytongue.sh my_code.py
instead ofpython mycode.py