Hello all ,
https://github.com/xdjm/Translate in B4A
https://drive.google.com/drive/folders/1HidohCzYR31KoF5aj0AQWRxb_lGkXz01?usp=sharing
Translate
Author: SMM
Version: 0.01
Sample :
https://github.com/xdjm/Translate in B4A
@DependsOn(values={"translate-release.aar","okhttp-3.9.1","okio-2.2.2","kotlin-stdlib-1.3.20","gson-2.8.5"})
https://drive.google.com/drive/folders/1HidohCzYR31KoF5aj0AQWRxb_lGkXz01?usp=sharing
Translate
Author: SMM
Version: 0.01
- Translate
Events:- _result (text As String)
- YoudaoTranslate (AppId As java.lang.String, text As java.lang.String, fromLanguage As java.lang.String, toLanguage As java.lang.String) As void
- GoogleTranslate (text As java.lang.String, fromLanguage As java.lang.String, toLanguage As java.lang.String) As void
- BaiduTranslate (AppId As java.lang.String, text As java.lang.String, fromLanguage As java.lang.String, toLanguage As java.lang.String) As void
- Initialize (ba As anywheresoftware.b4a.BA, EventName As java.lang.String) As void
- android.permission.INTERNET
Sample :
B4X:
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim trns As Translate
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
'Activity.LoadLayout("Layout1")
trns.Initialize("trans")
trns.BaiduTranslate("","Hello","en","it")
End Sub
Sub trans_result(text As String)
Log(text)
End Sub