diff --git a/htdocs/categories/categorie.php b/htdocs/categories/categorie.php index c8dc8e14306..0114f00fa04 100644 --- a/htdocs/categories/categorie.php +++ b/htdocs/categories/categorie.php @@ -4,6 +4,7 @@ * Copyright (C) 2005-2010 Regis Houssin * Copyright (C) 2006-2010 Laurent Destailleur * Copyright (C) 2007 Patrick Raguin + * Copyright (C) 2010 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -182,6 +183,7 @@ if ($_GET["socid"]) require_once(DOL_DOCUMENT_ROOT."/societe/class/societe.class.php"); $langs->load("companies"); + if ($conf->notification->enabled) $langs->load("mails"); /* * Creation de l'objet client/fournisseur correspondant au socid diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index 4925327e436..2f71249337b 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -34,6 +34,7 @@ require_once(DOL_DOCUMENT_ROOT."/compta/facture/class/facture.class.php"); $langs->load("companies"); if ($conf->facture->enabled) $langs->load("bills"); if ($conf->projet->enabled) $langs->load("projects"); +if ($conf->notification->enabled) $langs->load("mails"); // Security check $socid = isset($_GET["socid"])?$_GET["socid"]:''; diff --git a/htdocs/soc.php b/htdocs/soc.php index 606f8f03218..b057a3695fc 100644 --- a/htdocs/soc.php +++ b/htdocs/soc.php @@ -42,6 +42,7 @@ $langs->load("commercial"); $langs->load("bills"); $langs->load("banks"); $langs->load("users"); +if ($conf->notification->enabled) $langs->load("mails"); // Security check $socid = isset($_GET["socid"])?$_GET["socid"]:''; diff --git a/htdocs/societe/agenda.php b/htdocs/societe/agenda.php index 6b6fe2e3031..68f7cb46b1f 100644 --- a/htdocs/societe/agenda.php +++ b/htdocs/societe/agenda.php @@ -4,6 +4,7 @@ * Copyright (C) 2005-2009 Regis Houssin * Copyright (C) 2006-2010 Laurent Destailleur * Copyright (C) 2007 Patrick Raguin + * Copyright (C) 2010 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -72,7 +73,7 @@ if ($_GET["socid"]) $result = $soc->fetch($_GET["socid"]); llxHeader("","",$langs->trans("Category")); - + if ($conf->notification->enabled) $langs->load("mails"); $head = societe_prepare_head($soc); dol_fiche_head($head, 'agenda', $langs->trans("ThirdParty"),0,'company'); diff --git a/htdocs/societe/document.php b/htdocs/societe/document.php index f01b9a0ed6f..ae8f8e340b4 100644 --- a/htdocs/societe/document.php +++ b/htdocs/societe/document.php @@ -2,6 +2,7 @@ /* Copyright (C) 2002-2007 Rodolphe Quiedeville * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2005-2007 Regis Houssin + * Copyright (C) 2010 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -126,6 +127,7 @@ if ($socid > 0) /* * Affichage onglets */ + if ($conf->notification->enabled) $langs->load("mails"); $head = societe_prepare_head($societe); $html=new Form($db); diff --git a/htdocs/societe/info.php b/htdocs/societe/info.php index baecbbc0f2a..2af56a34195 100644 --- a/htdocs/societe/info.php +++ b/htdocs/societe/info.php @@ -1,5 +1,6 @@ + * Copyright (C) 2010 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -30,6 +31,7 @@ require_once(DOL_DOCUMENT_ROOT."/societe/class/societe.class.php"); $langs->load("companies"); $langs->load("other"); +if ($conf->notification->enabled) $langs->load("mails"); // Security check $socid = isset($_GET["socid"])?$_GET["socid"]:''; diff --git a/htdocs/societe/socnote.php b/htdocs/societe/socnote.php index b51fcf8330f..896cb3d9b23 100644 --- a/htdocs/societe/socnote.php +++ b/htdocs/societe/socnote.php @@ -2,6 +2,7 @@ /* Copyright (C) 2001-2003,2005 Rodolphe Quiedeville * Copyright (C) 2004-2010 Laurent Destailleur * Copyright (C) 2005-2006 Regis Houssin + * Copyright (C) 2010 Juanjo Menent * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -67,6 +68,8 @@ if ($socid > 0) /* * Affichage onglets */ + if ($conf->notification->enabled) $langs->load("mails"); + $head = societe_prepare_head($societe); dol_fiche_head($head, 'note', $langs->trans("ThirdParty"),0,'company');