Fix load lang
This commit is contained in:
parent
7c39543c72
commit
6f1a51139c
@ -786,8 +786,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
|||||||
// Note that these key can be set in agenda setup, only if defined into c_action_trigger
|
// Note that these key can be set in agenda setup, only if defined into c_action_trigger
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
if (empty($object->actionmsg2)) {
|
if (empty($object->actionmsg2)) {
|
||||||
if ($langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref)) != $action."InDolibarr") { // specific translation key
|
|
||||||
$langs->loadLangs(array("agenda", "other"));
|
$langs->loadLangs(array("agenda", "other"));
|
||||||
|
if ($langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref)) != $action."InDolibarr") { // specific translation key
|
||||||
$object->actionmsg2 = $langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref));
|
$object->actionmsg2 = $langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref));
|
||||||
} else { // generic translation key
|
} else { // generic translation key
|
||||||
$tmp = explode('_', $action);
|
$tmp = explode('_', $action);
|
||||||
@ -795,8 +795,8 @@ class InterfaceActionsAuto extends DolibarrTriggers
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (empty($object->actionmsg)) {
|
if (empty($object->actionmsg)) {
|
||||||
if ($langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref)) != $action."InDolibarr") { // specific translation key
|
|
||||||
$langs->loadLangs(array("agenda", "other"));
|
$langs->loadLangs(array("agenda", "other"));
|
||||||
|
if ($langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref)) != $action."InDolibarr") { // specific translation key
|
||||||
$object->actionmsg = $langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref));
|
$object->actionmsg = $langs->transnoentities($action."InDolibarr", ($object->newref ? $object->newref : $object->ref));
|
||||||
} else { // generic translation key
|
} else { // generic translation key
|
||||||
$tmp = explode('_', $action);
|
$tmp = explode('_', $action);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user