The 'Globalese' pretranslation is triggered 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).
Before the pretranslation can be made, the parameters of Globalese must be saved to the server.
Saves the 'Globalese' project parameters for later usage.
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):
Code Block |
---|
{
"engine":"globalese engine id",
"group":"globalese group id",
"apiUsername":"globalese username",
"apiKey":"globalese api-key"
} |
POST request layout
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 |
Provides a list with all available groups.
URL: | editor/plugins_globalesepretranslation_globalese/groups |
Available Methods: | GET |
Specialities: | - |
GET request parameters example (json):
Code Block |
---|
{ "username":"globalese username", "apiKey":"globalese api-key" } |
Groups request Layout
Name | Type | Info |
---|---|---|
username | string | The username used for globalese api authentication |
apiKey | string | The apiKey used for globalese api authentication |
Groups
...
response Layout
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.
Provides a list with all available engines.
URL: | editor/plugins_globalesepretranslation_globalese/engines |
Available Methods: | GET |
Specialities: | - |
GET request parametars parameters example (json):
Code Block |
---|
{ |
...
"username":" |
...
globalese username", |
...
"apiKey":" |
...
globalese api-key", |
...
"sourceLang":"5", |
...
"targetLang":"4" } |
}
Engines
...
request Layout
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 |
Engines response Layout
Name | Type | Info |
---|---|---|
source | string (rfc5646) | Source language of the segmentsengine |
targetLangtarget | string (rfc5646)The language that the segments will be translated | 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') |