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

Dimitrios Glentadakis dglent at free.fr
Fri Apr 11 19:09:41 UTC 2014


SVN commit 1383872 by glentadakis:

Add wikipedia in engines

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


--- trunk/l10n-kde4/el/lokalize-scripts/lookup-multidico-el.py #1383871:1383872
@@ -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"]
+        "3", "microsoft.com", "on", "4", "wordreference.com", "on", "5", "wikipedia", "on"]
     ans = subprocess.Popen( cmd, stdout=subprocess.PIPE ).communicate()[0]
     ans = ans.strip()
     ans = ans.split()
@@ -32,6 +32,8 @@
         time.sleep(0.5)
     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))
 lookup()
 if null:
     os.system("kdialog --title 'Lokalize - Αναζήτηση σε διαδικτυακά λεξικά:' --passivepopup '{0}' 5".format('Δεν έχετε επιλέξει πηγαίο κείμενο'))


More information about the kde-i18n-el mailing list