google translator access via livecode

2023-06-04 Thread Andrew Meit via use-livecode
I am seeking a widget or live script code to translate a single word or at most 256 chrs text from within a stack. I think there is or was Google api livecode could use to talk with the Google translator server via scripting. My ideal use: while moving the cursor over and clicking text the mouset

Re: google translator access via livecode

2023-06-05 Thread Paul Dupuis via use-livecode
On 6/4/2023 2:35 PM, Andrew Meit via use-livecode wrote: I am seeking a widget or live script code to translate a single word or at most 256 chrs text from within a stack. I think there is or was Google api livecode could use to talk with the Google translator server via scripting. My ideal use

Re: google translator access via livecode

2023-06-05 Thread Tim Selander via use-livecode
I use google translate API with an LC Server web application. It would probably work exactly the same with LC desktop. The call looks like this: put "https://www.googleapis.com/language/translate/v2?key=(your google API account key)&q=cat&source=en&target=ja" into tURL put URL tURL into vholde