CM Tooltip Guide: Google Translate API

The user guide has moved to a new location

This page is no longer maintained
In order for the Google Translate API integration and functionality to work, the server must have a PHP cURL library installed!

The CM Tooltip Glossary Pro+ and eCommerce editions support adding a Google Translate API to tooltips and term pages, to help translate their content from one language to another. This feature is particularly useful in cases where a website is meant to serve a bilingual community.

How to integrate a Google translate API into a WordPress glossary?

If you choose to integrate a Google Translate API, you will need to have a Google API key, which can be easily obtained from Google (this of course will cost money based on the usage).

To obtain an API key for translation please follow the instructions from Google.

Next, enter the CM Tooltip Glossary plugin settings panel and set the following definitions:

  • Add the API key
  • Choose a source language (language in which the original text is written)
  • Add the target language (to which the original text will be translated)
  • Source and target languages can be also modified using the following shortcode:

    {glossary_translate term="welcome" source="english" target="spanish"}
    Please note that when using this code, you should use brackets -[]- instead of braces -{}.

    Further definitions for the Google translate API integration:

    Check the box “Display translation and original text together?” if you want both source language and target language to appear side by side in the tooltip. Note that if this option is not chosen, translation will only show in the tooltip. Alternatively, you can choose to only translate the term name in the tooltip – and not the tooltip content.

    CM WordPress Plugins- Google translate API

    How to exclude certain terms from using the Google translaslate API

    Each of your term page editors contains a metabox with tooltip override settings that only apply on the specified term. check the box “Disable Google translate” API for this term” to hide the specified term’s translation on all pages and posts, as shown in the image bellow:

    override the tooltip settings by disabling the google translate API in the term page

https://www.cminds.com/wordpress-plugins-knowledge-base-and-documentation/?hscat=6-cm-tooltip