Translate!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 211
- Joined: Sun Oct 24, 2010 12:13 am
Translate!
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!
Re: Translate!
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.
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.
-
- VIP Livecode Opensource Backer
- Posts: 296
- Joined: Wed May 02, 2012 12:23 pm
- Location: New York
- Contact:
Re: Translate!
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
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
__________________________________________
macOS Sierra • LiveCode 7 & xCode 8
Re: Translate!
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.
When I understand it well, smaller use is for free, larger textes have to been paid.