Impossible easier:
- Select the text you want to translate.
- Press the right mouse button.
- You will get the translation in seconds.
Context menu translator is a free software project.
You can find the source code at:
- https://github.com/edgarmiro/traductor-menu-contextual