June 2, 20196 yr Gents, is it possible to make Filemaker translate the foreign word and copy the translation into the specified field? Thanks!
June 2, 20196 yr One solution would be to use Google Translate und the 'Insert from URL' function. The translation query can be used in the href. Let's say you have the french word "salle de sejour", which you want to translate into englisch. This is href: https://translate.google.com/#view=home&op=translate&sl=fr&tl=en&text=salle de sejour translate&sl= fr&tl=en => french-to-english text= => your text to be translated Extract the html result. Your result lays somewhere between ' <span class="tlid-translation translation" lang="en"> ' AND ' "</span>" ' Use cf 'getBetween' for extraction: https://www.briandunning.com/cf/479
June 2, 20196 yr When the 'InsertFromURL' works, it's all about the getBetween extraction for the result snippet.
June 2, 20196 yr You can skip all the parsing and use the Google Translate API directly: https://cloud.google.com/translate/docs/reference/rest/v3beta1/projects.locations/translateText
Create an account or sign in to comment