[pyqgis-console] a simple syntax checker for the editor
- some fixes and code cleanup
[pyqgis-console]  minor fixes: followup a60e74a
translation updates: galician by Xan