The 'Globalese' pretranslation is triggered automatically on the translate5 import. The translate5 import will finish and the task will be available for usage after the Globalese pretranslation is done(the translated files are downloaded and merged).
Preconditions for the pretranslation to be started are:
URL: | editor/plugins_globalesepretranslation_globalese |
Available Methods: | POST |
Specialities: | The passed parameters will be saved internally, the 'Globalese' pretranslation process is triggered by event (importWorkerQueued) from the import workflow (task::post) |
POST request parameters example(json):
{ "engine":"globalese engine id", "group":"globalese group id", "apiUsername":"globalese username", "apiKey":"globalese api-key" } |
Name | Type | Info |
---|---|---|
engine | int | The id of the globalese engine |
group | int | The id of the globalese group |
apiUsername | string | The username used for globalese api authentication |
apiKey | string | The apiKey used for globalese api authentication |
URL: | editor/plugins_globalesepretranslation_globalese/groups |
Available Methods: | GET |
Specialities: | - |
GET request parameters example (json):
{ "username":"globalese username", "apiKey":"globalese api-key" } |
Name | Type | Info |
---|---|---|
username | string | The username used for globalese api authentication |
apiKey | string | The apiKey used for globalese api authentication |
Name | Type | Info |
---|---|---|
id | integer | The id of the group |
name | string | The name of the group |
Additional info: Only the groups who exist for the authenticated user will be returned.
URL: | editor/plugins_globalesepretranslation_globalese/engines |
Available Methods: | GET |
Specialities: | - |
GET request parameters example (json):
{ "username":"globalese username", "apiKey":"globalese api-key", "sourceLang":"5", "targetLang":"4" } |
Name | Type | Info |
---|---|---|
username | string | The username used for globalese api authentication |
apiKey | string | The apiKey used for globalese api authentication |
sourceLang | int | Source language id of the engine that will be searched |
targetLang | int | Targed language id of the engine that will be searched |
Name | Type | Info |
---|---|---|
source | string (rfc5646) | Source language of the engine |
target | string (rfc5646) | Target language of the engine |
group | int | The group id where this engine belongs to |
id | int | The id of the engine |
name | string | The name of the engine |
status | string | The status of the engine ('on' or 'trained') |