Translate!

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

Translate!

Post by richardmac » Mon Mar 18, 2013 3:28 pm

I am looking for a way to translate a text field from spanish to english in LiveCode. Apparently it used to be possible to do this via Google Translate and a shell script, but Google put the kibosh on that. So I'm wondering if anyone has any other ideas? If I can figure out a solution I promise to post it!

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Translate!

Post by sturgis » Mon Mar 18, 2013 3:42 pm

There is a google translate API but it costs unfortunately.

Instead, you might go to this address: http://translate.google.com/?tl=es#es/en/

The words to translate go after the slash, however, if ios will allow you to have a hidden browser you can then use mobilecontroldo to execute javascript in the hidden browser (maybe) to change the text entered into the english field, and then read from the translated text in the spanish field. Not sure this will work but its worth a shot.

endernafi
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 296
Joined: Wed May 02, 2012 12:23 pm
Location: New York
Contact:

Re: Translate!

Post by endernafi » Mon Mar 18, 2013 4:54 pm

Hi Richard,

You have to use an API;
as Sturgis said, Google charges for its API for almost a year now.
The price is very reasonable, though; $20 for 1M chars...

WorldLingo's API is free but its translations are not as accurate as Google's.
Microsoft's, iTranslate4's translations are the same, i.e not much accurate.

I use Wordfast and Google's API in my translation jobs.
If you decide to use it, this link will give you a start.


Best,

~ Ender Nafi
~... together, we're smarter ...~
__________________________________________

macOS Sierra • LiveCode 7 & xCode 8

Gurki
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 30
Joined: Wed Jul 10, 2013 6:34 pm

Re: Translate!

Post by Gurki » Thu Jan 04, 2018 12:09 pm

There is another translator with less languages than Google, but better translations: deepl.com. They have an API, just have a look here: https://www.deepl.com/api-reference.html
When I understand it well, smaller use is for free, larger textes have to been paid.

Post Reply

Return to “iOS Deployment”