![]() |
Xataface Translation Memory Module 0.1
Translation Memory for Xataface Applications
|
Handler for the tm_get_strings action which provides a REST API to retrieve translations from the translation memory that match a set of strings.
More...
Public Member Functions | |
| handle ($params) | |
| out ($params) | |
Handler for the tm_get_strings action which provides a REST API to retrieve translations from the translation memory that match a set of strings.
| Name | Description |
|---|---|
--source | The 2-digit ISO code of the source language. |
--dest | The 2-digit ISO code of the destination language. |
--strings | An array of strings that we wish to retrieve translations for. |
This action will return mimetype text/json with a JSON object of the following structure:
{
code: <int>, // The response code. 200 for success.
message: <string>, // The response message. Error or success.
strings: <object>, // Object where the keys are the source strings, and the values
// are the corresponding translations. Null if the translation
// was not found.
}
This action requires that the user has the tm:get strings permission.
Definition at line 56 of file tm_get_strings.php.
| handle | ( | $ | params | ) |
Definition at line 58 of file tm_get_strings.php.
| out | ( | $ | params | ) |
Definition at line 123 of file tm_get_strings.php.
1.7.4