• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Integration of Google Translater API into CFML Code

New Here ,
May 26, 2014 May 26, 2014

Copy link to clipboard

Copied

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.

TOPICS
Builder

Views

676

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 08, 2014 Jun 08, 2014

Copy link to clipboard

Copied

LATEST

Hi vincentlander,

I don't have an answer but this is the forum for CF Builder (the CF Development Tool) so you may want to post this in the ColdFusion discussion group.

Sorry,

Ken

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation