This python code can translate your code files written with chinese strings into english π.You can use the desigred code there are 3 types
tran_sql.py
is used to translate a.SQL
filetran_php.py
is used to translate a.PHP
filetran_html.py
is used to translate a.HTML
filetran_folder.py
is used to translate a complete folder with.PHP
files
I reommend you to use the correct code for the correct file extension.
- python3
- linux system
- googletrans python package.
pip3 install googletrans==3.1.0a0
python3 tran_sql.py myfile.sql
(specify the file or folder you want to translate)