Fix trans

This commit is contained in:
Laurent Destailleur 2023-08-16 16:30:31 +02:00
parent e48a4c40a1
commit 6a41c806f5
2 changed files with 5 additions and 1 deletions

View file

@ -24,7 +24,7 @@
*
* $trackid must be defined
* $modelmail
* $defaulttopic
* $defaulttopic and $defaulttopiclang
* $diroutput
* $arrayoffamiliestoexclude=array('system', 'mycompany', 'object', 'objectamount', 'date', 'user', ...);
*/
@ -77,6 +77,9 @@ if ($action == 'presend') {
$outputlangs->setDefaultLang($newlang);
// Load traductions files required by page
$outputlangs->loadLangs(array('commercial', 'bills', 'orders', 'contracts', 'members', 'propal', 'products', 'supplier_proposal', 'interventions', 'receptions', 'sendings'));
if (!empty($defaulttopiclang)) {
$outputlangs->loadLangs(array($defaulttopiclang));
}
}
$topicmail = '';

View file

@ -1631,6 +1631,7 @@ if ($action == 'create' && $user->rights->projet->creer) {
// Presend form
$modelmail = 'project';
$defaulttopic = 'SendProjectRef';
$defaulttopiclang = 'projects';
$diroutput = $conf->project->multidir_output[$object->entity];
$autocopy = 'MAIN_MAIL_AUTOCOPY_PROJECT_TO'; // used to know the automatic BCC to add
$trackid = 'proj'.$object->id;