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:
- Stop all EnterWorks services.
-
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.
-
- 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.
-
Edit the options for the enable-web-server-service to configure it
for the Google Translate API:
- 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
- Back up the
create-enable-web-server-service.cmd
script. Copy it to:<drive>:\Backup
- 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
- Save and exit the
create-web-server-service.cmd
file. -
Use the
create-enable-dam-manager-service.cmd
script.
- The
- Restart all EnterWorks services.