#REFACTORING by cg
authorClaus Gittinger <cg@exept.de>
Wed, 29 Jan 2020 17:28:37 +0100
changeset 19435 00e10d6b42ed
parent 19434 26040954e73a
child 19436 a1297af65cf0
#REFACTORING by cg class: WorkspaceApplication changed: #babelFishTranslate: class: WorkspaceApplication class changed: #editMenu
WorkspaceApplication.st
--- a/WorkspaceApplication.st	Wed Jan 29 11:37:00 2020 +0100
+++ b/WorkspaceApplication.st	Wed Jan 29 17:28:37 2020 +0100
@@ -1124,6 +1124,12 @@
                       )
                      (MenuItem
                         enabled: hasSelectionInActiveWorkspace
+                        label: 'any -> English'
+                        itemValue: babelFishTranslate:
+                        argument: 'auto_en'
+                      )
+                     (MenuItem
+                        enabled: hasSelectionInActiveWorkspace
                         label: 'any -> German'
                         itemValue: babelFishTranslate:
                         argument: 'auto_de'
@@ -4065,14 +4071,10 @@
 
 babelFishTranslate:fromToModeString
     "translate the selected text and paste it after the selection.
-     This is now obsolete, as that web service no longer exists (sigh)"
-
-    ^ self googleTranslate:fromToModeString.
-"/    SOAP::BabelFishClient isNil ifTrue:[
-"/        Dialog information:'Sorry the SOAP-BabelFish translation-client is not available'.
-"/        ^ self.
-"/    ].
-"/    self selectedWorkspace babelFishTranslate:fromToModeString
+     Used to use babelFish, which is now obsolete, as that web service no longer exists (sigh).
+     So now we use google..."
+
+    self selectedWorkspace babelFishTranslate:fromToModeString
 
     "Modified: / 01-12-2010 / 12:24:34 / cg"
 !