Aprenda OpenGL
Translation of the website https://learnopengl.com/ to pt-br
translate.py
There is a little tool that you can use to help you translate to your own language as well. The script translate.py
(located in the root folder of this repository) uses google translate service to generate a markdown file with all the translated content from a post from the original website.
The script is crafted to handle the https://learnopengl.com/ posts, but should be straightforward to adapt it to your needs. Always remember to review the google translated output because it comes with LOTS of errors, it is far from perfect!
Another advantage of this script, is that it also keeps all the image url and hyperlinks, so it leaves to you pretty much just reviewing the final result.
The usage of the script is very simple (you can use --help to check usage). The required command arguments are (on this order):
-
url of the page you want to translate
-
translated output markdown file
Optional arguments to adjust to your language are:
--output_language: language to be translated to, default='pt'
--google_translate_link: link to google translate service, default='translate.google.com.br'
--verbose: print translation progress
Example:
python3 translate.py https://learnopengl.com/Lighting/Materials content/iluminacao/materiais/_index.md