HOW TO config Google Translation feature?

Talk and info about common issues

Moderators: ne_moj, zewa

administrator
Site Admin
Site Admin
Posts: 5930
Joined: Jan 7th, '09, 23:18
Contact:

HOW TO config Google Translation feature?

Postby administrator » Mar 18th, '13, 20:36

To use Google Translation API you have to do following.

With Google Translate, you can dynamically translate text between thousands of language pairs.

1. Visit the Google site and open paid account: https://developers.google.com/translate/

2. Once the service has been activated, generate your API key and write it down.

3. Open include/classes/vocabulary.class.php file and find there following line of code (~ ln.331):

Code: Select all

var YOUR_API_KEY = "";


4. Assign generated key to this variable, so it will look like:

Code: Select all

var YOUR_API_KEY = "12345678.....";


5. Save the changes and try Google Translation API ion your site:
Languages Settings » Vocabulary

Return to “ApPHP MicroCMS {HOW TO}”