About us
ProcessMaker Inc. is the developer of the ProcessMaker Workflow & BPM Software Suite. Read more
$_SESSION['SYS_LANG'] = 'es';
jemiris wrote:And one more clarification using rest api sample url :http://example.com/api/1.0/workflow/ext ... uage/pt-BR let's have. Can we set the session in rest api like this $_SESSION['SYS_LANG'] = $lang; will it workThe plugin I gave you has that code:
/**
* Set the login language in $_SESSION['SYS_LANG']
*
* @url PUT /language/:lang
* @access protected
*
* @param string $lang
*
* @author Amos Batto <amos@processmaker.com>
* @copyright Public Domain
*/
public function putSystemLanguage($lang)
{
if (empty($lang) or empty(trim($lang))) {
throw new Exception("System language cannot be empty.");
}
$_SESSION['SYS_LANG'] = $lang;
return null;
}
/**
* Get the login language stored in $_SESSION['SYS_LANG']
*
* @url GET /language
* @access protected
*
* @author Amos Batto <amos@processmaker.com>
* @copyright Public Domain
*/
public function getSystemLanguage($lang)
{
if (!isset($_SESSION['SYS_LANG'])) {
throw new Exception("System language for login session does not exist.");
}
return $_SESSION['SYS_LANG'];
}
A 1xBet clone script is a customizable software so[…]
A Bustabit clone script is a pre-made software sol[…]
Are you looking for ways to pay someone to write m[…]