View the GitHub project here or download the latest release here.
The Language Translation script will translate the text of items into another language. The script can also detect the language of the text and clear translated text.
You will need a Google Cloud Platform account to access the Google Cloud Translation API. Use the following steps to sign up for an account.
- Sign up for an account here, https://cloud.google.com/translate/
- From the Google Cloud Platform Console select
APIs & Services
- From the API Dashboard select
Enable APIs and Services
- Search for and enable the
Google Cloud Translation API
- On the Google Cloud Translation API overview select
Credentials
- Click
Create credentials
and selectAPI Key
- Copy the API key provided
The script makes use of a RubyGem which must be installed using the following command run via Command Prompt from your Nuix Workstation installation directory
c:\Program Files\Nuix\Nuix 7.4>jre\bin\java -Xmx500M -classpath lib\* org.jruby.Main --command gem install easy_translate --user-install
Begin by downloading the latest release. Extract the contents of the archive into your Nuix scripts directory. In Windows the script directory is likely going to be either of the following:
%appdata%\Nuix\Scripts
- User level script directory%programdata%\Nuix\Scripts
- System level script directory
Setting | Description |
---|---|
Google Translate API Key | API Key provided by Google. The API Key is saved in the settings.json file located in the script directory and used to populate the field the next time the script is run |
Translation operation | Select the operation you would like to perform |
Apply detected language as custom metadata?* | Applies the detected language as item custom metadata |
Custom Metadata Field Name | Defines the custom metadata field name used to store the detected language value |
Tag items with detected language?* | Tags items with the detected language |
Top-level tag | Defines the top-level tag of a nested tag structure to use when tagging detected languages |
Translation language** | Select the target translation language |
Save as default translation language** | Optionally saves the selected Translation language as the default |
* - Available when Detect languages
or Detect languages and translate text
is selected
** - Available when Translate text
or Detect languages and translate text
is selected
Translation operation | Description |
---|---|
Detect languages | Detects the language of selected items and applies Detection Options |
Translate text | Translates the text of selected items. Translated text is stored in the item's text object |
Detect languages and translate text | Performs both the Detect languages and Translate text operations |
Clear translations | Removes the translated text from the item's text object. Item's original text will remain |
Copyright 2018 Nuix
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.