API URL | /local/locale/tra/put |
Description | Save NLS messages pairs to file and compile RESTful API |
Access | Restricted to roles: admin, demo (r/o) |
Rquest method | POST |
Request data type | Request raw data |
Request data |
{
path: "/cms/skins/default/locale/lt_LT.utf8/LC_MESSAGES/skin.po",
data: {
"Ask us via mail": { // singleton form message in English
"msgstr": [ // message translation into local language
"" // sigleton translation form
... // other translation forms (number depends on language) if plural form
]
},
...
}
}
|
Response type | JSON |
Response data |
{
rc: 'return code', // '0' - success, '1' - error
msg: 'return message', // error message
}
|