The Star Connector
Summary
An out-of-the-box connector to Star Translation Services, please see at www.star-ts.com.
Set up
To set up the connector, add dependency 'translations-addon-connector-star' as mentioned in the installation page.
Then set this property in the repository:
/hippo:configuration/hippo:modules/translation-services-daemon/hippo:moduleconfig/translationsaddon:connector/className=
com.bloomreach.cms.translations.connector.star.StarTranslationConnector
Configuration settings are to be taken from your Star TS account. Apply for one if you don't have one yet.
Environment variables (recommended)
If you prefer not to store values in JCR, the following properties can be set via environment variables:
| Property | Environment variable |
| star.externalServiceUrl | STAR_EXTERNALSERVICEURL |
| star.username | STAR_USERNAME |
| star.password | STAR_PASSWORD |
| star.localesMap | STAR_LOCALESMAP |
If env variables are not set, values fall back to system properties and then JCR.
JCR Configuration
The configuration at the translationsaddon:connector node:
| String property | Default value | Description |
| star.externalServiceUrl | URL of the STAR API | |
| star.username | User name for STAR API (BASIC AUTH) | |
| star.password | Password for STAR API (BASIC AUTH) | |
| star.localesMap | {"en":"ENU", "de":"DEU", "nl":"NLD", "fr":"FRA"} | Mandatory, since 5.1.0 A JSON string containing a mapping between ISO locales and Microsoft LCID locales that STAR uses |
| star.serviceTypeName | The STAR workflow to be invoked | |
| star.jobNamePrefix | J | Prefix to attach to all STAR job names |
| star.jobNameDigits | 7 | Length of job numbers |
| star.themeName | STAR | Name of the translation memory to be used at STAR |
| star.jobGroupName | STAR | Name for the group of jobs (website, marketing, etc) |
| star.jobGroups | STAR | Since 5.2.0 Comma-separated list of job group names to accept when polling for ready jobs |
| star.pjtTemplate | STAR.pjt | The pjt file to use |
| star.deadlineDays | 10 | The number of days each request has a deadline for |
| star.customerShortName | STAR | The customer name accoding to STAR |
| star.pmUserName | StarPM | The STAR project manager |
Turn on translation results processing scheduler job
As also mentioned at the configuration page, be sure have translation results pulled into the repository, by enabling the trigger at
/hippo:configuration/hippo:modules/scheduler/hippo:moduleconfig/translationsaddon/TranslationResultsProcessor/hipposched:triggers/every-minute
Set the property hipposched:enabled to true (checked) and save the changes.
You can also change the value of hipposched:cronExpression to adjust the time interval this job runs to check translation results on remote server.