← Back to team overview

cairo-dock-team team mailing list archive

[Merge] lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator into lp:cairo-dock-plug-ins-extras

 

Eduardo Mucelli Rezende Oliveira has proposed merging lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator into lp:cairo-dock-plug-ins-extras.

Requested reviews:
  Cairo-Dock Team (cairo-dock-team)

For more details, see:
https://code.launchpad.net/~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator/+merge/46498

Dropping text, or URL is allowed in the plugin.
-- 
https://code.launchpad.net/~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator/+merge/46498
Your team Cairo-Dock Team is requested to review the proposed merge of lp:~eduardo-mucelli/cairo-dock-plug-ins-extras/Translator into lp:cairo-dock-plug-ins-extras.
=== modified file 'Translator/Changelog.txt'
--- Translator/Changelog.txt	2011-01-16 15:41:42 +0000
+++ Translator/Changelog.txt	2011-01-17 16:37:10 +0000
@@ -1,3 +1,4 @@
+0.1.8:(January/17/2011): Dropping text, or URL is allowed in the plugin.
 0.1.7:(January/16/2011): Added the Web Page translation. Entering a URL, the translated page is loaded in the current web browser.
 0.1.6:(January/14/2011): Added the dictionary functionality. If there is only one word to be translated, show the dictionary with the possible translations in categories.
 0.1.5:(October/27/2010): Added a string pre-processing to remove the possible line breaks in the text to be translated. Changed the shortcuts, both the X-server, and the Dock one were set to Ctrl+Alt[W|R]

=== modified file 'Translator/Translator'
--- Translator/Translator	2011-01-16 16:01:16 +0000
+++ Translator/Translator	2011-01-17 16:37:10 +0000
@@ -275,6 +275,7 @@
         self.icon.connect_to_signal("on_reload_module", self.action_on_reload)
         self.icon.connect_to_signal("on_shortkey", self.action_on_dock_level_shortkey)
         self.icon.connect_to_signal("on_answer_dialog", self.action_on_answer_dialog)
+        self.icon.connect_to_signal("on_drop_data", self.action_on_drop_data)
 
     def read_configuration_parameters(self):
         self.source = self.get_source_language_from_configuration()
@@ -493,6 +494,9 @@
             clipboard = gtk.clipboard_get()                                             # verifica por algo copiado para o clipboard
         return clipboard.wait_for_text()
 
+    def action_on_drop_data(self, text):
+        self.translate(text, self.source.abbrv, self.destiny.abbrv)
+
     def inform_start_of_waiting_process(self):
         self.icon.SetQuickInfo("...")
 

=== modified file 'Translator/Translator.conf'
--- Translator/Translator.conf	2011-01-16 15:41:42 +0000
+++ Translator/Translator.conf	2011-01-17 16:37:10 +0000
@@ -1,4 +1,4 @@
-#!en;0.1.7
+#!en;0.1.8
 
 #[gtk-about]
 [Icon]

=== modified file 'Translator/auto-load.conf'
--- Translator/auto-load.conf	2011-01-16 15:41:42 +0000
+++ Translator/auto-load.conf	2011-01-17 16:37:10 +0000
@@ -4,10 +4,10 @@
 author = Eduardo Mucelli Rezende Oliveira
 
 # A short description of the applet and how to use it.
-description = This applet provides a translator tool using the Google Translator service\n    Translator (formally doCkranslator) translates sentences, web pages, and single words showing the dictionary\n    First it is necessary to choose the languages using one of the following ways:\n        (I) Scroll up/down over the icon to choose the destination language\n        (II) Right-click on the icon -> "To", or "From"\n        (III) Right-click on the icon -> Translator -> Configuration\n    To translate you can do it using one of the following ways:\n        (I) Left-click on the icon; type your text and press Enter\n        (II) Select any text in any place, and middle click on the icon\n    The plugin also provides useful keyboard shortcuts (requires Python-Xlib, or Cairo-dock 2.2.0)\n        If you want to translate something you are reading in the foreign language you chose "From":\n        * Press Ctrl + Alt + R, type the text, and press Enter\n        If you are writing something in your native language you chose "To":\n        * Press Ctrl + Alt + W, type the text, and press Enter\n    Translated text will be shown as a dialog and be available in the clipboard, just press Ctrl+v to have it
+description = Translator translates sentences, web pages, and single words showing the dictionary\n    First it is necessary to choose the languages using one of the following ways:\n        (I) Scroll up/down over the icon to choose the destination language\n        (II) Right-click on the icon -> "To", or "From"\n        (III) Right-click on the icon -> Translator -> Configuration\n    To translate you can do it using one of the following ways:\n        (I) Left-click on the icon; type your text and press Enter\n        (II) Select any text in any place, and middle click on the icon\n        (III) Drag and drop a text on the icon\n    The plugin also provides useful keyboard shortcuts (requires Python-Xlib, or Cairo-dock 2.2.0)\n        If you want to translate something you are reading in the foreign language you chose "From":\n        * Press Ctrl + Alt + R, type the text, and press Enter\n        If you are writing something in your native language you chose "To":\n        * Press Ctrl + Alt + W, type the text, and press Enter\n    Translated text will be shown as a dialog and be available in the clipboard, just press Ctrl+v to have it
 
 # Category of the applet : 2 = files, 3 = internet, 4 = Desktop, 5 = accessory, 6 = system, 7 = fun
 category = 5
 
 # Version of the applet; change it everytime you change something in the config file. Don't forget to update the version both in this file and in the config file.
-version = 0.1.7
+version = 0.1.8


Follow ups