Configure Google Translate API - Precisely_EnterWorks - EnterWorks - 11.0

EnterWorks Guide

Product type
Software
Portfolio
Verify
Product family
EnterWorks
Product
Precisely EnterWorks
Precisely EnterWorks > EnterWorks
Version
11.0
Language
English
Product name
Precisely EnterWorks
Title
EnterWorks Guide
Copyright
2024
First publish date
2007
Last updated
2025-01-07
Published on
2025-01-07T07:44:20.997000

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 exist in the following folder.
      <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-enable-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-enable-web-server-service.cmd file.
    5. Use the create-enable-web-server-service.cmd script.
  5. Restart all EnterWorks services.