#REFACTORING by cg
class: WorkspaceApplication
changed: #babelFishTranslate:
class: WorkspaceApplication class
changed: #editMenu
--- 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"
!