Google Translator is a simple Plasmoid created using PyQt and PyKDE4 that lets you translate sentences using the Google Translate web service.
Google is shutting down their Translate API come December and they have already started to require a REFERER in the request. I would have to make quite a lot of changes to make it work just for the rest of November, so the Google Translator Plasmoid is officially discontinued.
- Simpler, more intuitive (IMHO) and smaller than the Translatiod Plasmoid (some might not see this as a feature :-)
- Select to and/or from language(s) from the dropdown lists and the translated sentence will be updated in realtime.
- Change the sentence to be translated and click on the “Go” nutton and the translated result will be updated.
- Selected languages and text is saved between sessions.
- Selected languages can be swapped easily.
- Auto-detect language.
- Docks in the Panel or on the Desktop.
Because I have only tried the Plasmoid on my own computer you may be able to use earlier versions.
- python-kde4 v. 4.5.1
- python-qt4 v. 4.7.2
- plasma-scriptengine-python v. 4.4.4
Download the newest version.
plasmapkg -i ./google-translator-<version>.plasmoid
If the Plasmoid is already installed you might have to run:
plasmapkg -u ./google-translator-<version>.plasmoid
From source code
Follow the instruction to download with svn.
Change to the currency-converter-plasmoid/currency-converter directory and issue the following commands:
zip -r ../google-translator.plasmoid .
And then continue by following the instructions on KDE UserBase.
Or add it from:
“Add Widgets”=>”Get New Widgets”=>”Download New Plasma Widgets”
As the Plasmoid gets its language codes from KLocale in kdelibs you will probably get the “invalid translation language pair” message more often than in the web based Google Translate and there maybe languages missing that Google Translate supports.