[kde-i18n-el] l10n-kde4/el/lokalize-scripts

Dimitrios Glentadakis dglent at free.fr
Fri Feb 13 20:42:26 UTC 2015


SVN commit 1415273 by glentadakis:

Add glosbe.com in engines

 M  +7 -3      lookup-multidico-el.py  


--- trunk/l10n-kde4/el/lokalize-scripts/lookup-multidico-el.py #1415272:1415273
@@ -17,7 +17,7 @@
         return
 
     cmd = ["kdialog", "--checklist", "Επιλογή λεξικού", "1", "answers.com", "on", "2", "l10n.kde.org", "on", \
-        "3", "microsoft.com", "on", "4", "wordreference.com", "on", "5", "wikipedia", "on"]
+        "3", "microsoft.com", "on", "4", "wordreference.com", "on", "5", "wikipedia", "on", "6", "glosbe.com", "on"]
     ans = subprocess.Popen( cmd, stdout=subprocess.PIPE ).communicate()[0]
     ans = ans.strip()
     ans = ans.split()
@@ -33,8 +33,12 @@
     if '"4"' in ans:
         os.system("kfmclient newTab 'http://www.wordreference.com/engr/{0}'".format(word))
     if '"5"' in ans:
-        os.system("kfmclient newTab 'https://en.wikipedia.org/wiki/{}'".format(word))
+        time.sleep(0.5)
+        os.system("kfmclient newTab 'https://en.wikipedia.org/wiki/{0}'".format(word))
+    if '"6"' in ans:
+        time.sleep(0.5)
+        os.system("kfmclient newTab 'https://el.glosbe.com/en/el/{0}'".format(word))
+
 lookup()
 if null:
     os.system("kdialog --title 'Lokalize - Αναζήτηση σε διαδικτυακά λεξικά:' --passivepopup '{0}' 5".format('Δεν έχετε επιλέξει πηγαίο κείμενο'))
-    
\ No newline at end of file


More information about the kde-i18n-el mailing list