Configure Google Translate API

To use the Google Translate API, the customer must have created an account with Google and obtained the following:

  • URL for the Google IP site.

  • Google Translate API key.

To configure EnterWorks to use the Google Translate API:

  1. Stop all EnterWorks services.
  2. Update the shared configuration properties with the values given below. If the settings do not appear in the sharedConfig.properties files, add them to the files.
    • google.translate.enabled: Specifies whether the translation is enabled.

      • 0: Google Translate is disabled.

      • 1: Google Translate is enabled.

    • google.translate.refer.site: The public IP address of Tomcat.

    • google.translate.key: The Google Translate API subscription key.

  3. Log into the Google Translate account and add the public IP address of Tomcat to the Accept requests from these server IP addresses list for the server key.
  4. Edit the options for the enable-web-server-service to configure it for the Google Translate API:
    1. The create-<service-name>-service.cmd scripts should exist in the following folder. If they do not, create the create-service scripts.
      <drive>:\Enterworks\enable2020\services\install
    2. Back up the create-enable-web-server-service.cmd script. Copy it to:
      <drive>:\Backup
    3. Edit the create-web-server-service.cmd script. Set the following flag. If it does not exist in the file, add it.
      -customProxies=/language;https://translation.googleapis.com
    4. Save and exit the create-web-server-service.cmd file.
    5. Use the create-enable-dam-manager-service.cmd script.
  5. Restart all EnterWorks services.