1 Reply Latest reply on Jun 8, 2014 9:55 AM by Kibbage.TEESO

    Integration of Google Translater API into CFML Code

    vincentlander

      I need to retrieve some data from a database using CFQUERY, and then translate that data into another language (so Spanish, Chinese, etc).- The Google Translator will be sufficient for now since the data is simple instructions - not a long article.

       

      The Javascript function that Google provides causes a dropdown menu to appear when the page is loaded. I want the translation to take place automatically, having selected the language on a previous page.

       

      #googtrans can be put in the URL to translate the whole page. However I only want to translate the database content - not the entire page. So, for example, part of the page  would be in English and the other part (from the database) in Spanish / Chinese.

       

      I found a good article on this on a blog some five years old. However it is evident that Google have changed their API since then, and so the blog code no longer works.

       

      Can anyone cast any light on this?

       

      Thanks in advance.