mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix missing translations
This commit is contained in:
parent
a9ef15ee55
commit
ea2728afa0
|
|
@ -64,7 +64,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/class/html.formmail.class.php';
|
|||
*/
|
||||
|
||||
// Load translation files required by the page
|
||||
$langs->loadLangs(array("admin", "other", "website", "errors"));
|
||||
$langs->loadLangs(array("admin", "other", "website", "main", "errors"));
|
||||
|
||||
// Security check
|
||||
if (!$user->hasRight('website', 'read')) {
|
||||
|
|
@ -2078,12 +2078,10 @@ if ($action == 'updatemeta' && $usercanedit) {
|
|||
$langs->load("errors");
|
||||
if ($db->lasterrno == 'DB_ERROR_RECORD_ALREADY_EXISTS') {
|
||||
$error++;
|
||||
$langs->load("errors");
|
||||
setEventMessages($langs->trans("ErrorAPageWithThisNameOrAliasAlreadyExists"), null, 'errors');
|
||||
$action = 'editmeta';
|
||||
} else {
|
||||
$error++;
|
||||
$langs->load("errors");
|
||||
setEventMessages($objectpage->error, $objectpage->errors, 'errors');
|
||||
$action = 'editmeta';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user