Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

NameTypeInfo
engine
intThe id of the globalese engine
group
intThe id of the globalese group
apiUsername
stringThe username used for globalese api authentication
apiKey
stringThe 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

NameTypeInfo
username
stringThe username used for globalese api authentication
apiKey
stringThe apiKey used for globalese api authentication

 

Groups

...

response Layout

NameTypeInfo
idintegerThe id of the group
namestringThe 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

NameTypeInfo
username
stringThe username used for globalese api authentication
apiKey
stringThe apiKey used for globalese api authentication
sourceLang
intSource language id of the engine that will be searched
targetLang
intTarged language id of the engine that will be searched

 

Engines response Layout

NameTypeInfo
sourcestring (rfc5646)Source language of the segmentsengine
targetLangtargetstring (rfc5646)The language that the segments will be translatedTarget language of the engine
groupintThe group id where this engine belongs to
idintThe id of the engine
namestringThe name of the engine
statusstringThe status of the engine ('on' or 'trained')