Jump to content

script to automatically translate the word and copy the translation into field


This topic is 1787 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

 

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.