|


| Homepage: Link other: Link Depends on KDE 4.x Downloads: 2679
| Submitted: Oct 17 2009 Updated: Nov 11 2011
| | Description:
UPDATE:
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.
https://code.google.com/apis/language/translate/overview.html
A simple Plasma Widget that lets you translate short sentences using data from Google Translate.
Goggle Translator is programmed in in Python using PyQt and PyKDE4.
Features:
- Simpler, more intuitive (IMHO) and smaller than the Translatiod Plasmoid
(some might not see this as a feature :-)
- Select to and/or 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.
Dependencies:
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.3
* python-simplejson
* plasma-scriptengine-python v. 4.5.1
Install the Plasmoid:
plasmapkg -i ./google-translator-.plasmoid
or add it from:
"Add Widgets"=>"Get New Widgets"=>"Download New Plasma Widgets"
Known Issues:
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.
Brazilian Portuguese to English works but English to Brazilian Portuguese doesn't.
Changelog:
- 0.6
The Plasmoid now finally docks in the panel using Plasma.PopupApplet.
Only import required parts of the used modules. The functionalities such
as System Notifications and Network monitoring are now separate classes
which makes the reusable in my other Plasmoids.
Fix for not detecting network on some distributions.
Better feedback on translation and language detection errors.
- 0.5.1
Bug fix release. Accessed an object before it was instantiated.
- 0.5
Added language detection.
Re-factored the code into a reusable base class and a specialized subsclass.
Switch to using simplejson python module.
Minor bug-fix for a character encoding problem which only appeared on
some installations.
- 0.4.3
Improved exception handling.
Notification on network errors.
Some code cleanup.
- 0.4.2
Much improved error handling when no network connection using Solid. The Plasmoid
is now disabled until a connections is established instead of just giving up
and dying ;-)
The Plasmoid is now installed under the "Language" section.
- 0.4.1
Improved KIO handling to be able to handle longer text while at the
same time limit text to 1200 characters to avoid errors on too long
queries.
- 0.4
Added a "Swap languages" button.
TransferJobs are no longer shown in KDE Notifier.
- 0.3.2
Languages weren't sorted after change to KLocale.
- 0.3.1
Quick fix for layout error when adding Plasmoid.
- 0.3
Use KLocale for getting languages. This cuts down on code lines and it will
i18n the language names. Also I don't have to keep up with the number of Google
translations. It's now a race between Google and KDE ;-)
Act on no network connection.
Added nice little Google attribution logo :-)
- 0.2
Finally fixed ComboBoxes dropdown below other widgets!
Code refactoring and cleanup.
Translations automated. For now only Danish translations exists.
Use KIO when getting translation to not block the GUI.
Added Clear Button to text entry field.
- 0.1
Initial version
License: GPL
|
| |
Add commentBack
|