loadlangs
This commit is contained in:
parent
0a90f2d690
commit
9cd7bb3f58
@ -45,6 +45,7 @@ if (! empty($conf->tax->enabled))
|
||||
//if (!$user->rights->compta->general->lire)
|
||||
// accessforbidden();
|
||||
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('compta', 'bills'));
|
||||
if (! empty($conf->commande->enabled))
|
||||
$langs->load("orders");
|
||||
|
||||
@ -35,6 +35,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php';
|
||||
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('companies', 'bills', 'banks', 'multicurrency'));
|
||||
|
||||
$action = GETPOST('action','alpha');
|
||||
|
||||
@ -29,7 +29,7 @@ require_once DOL_DOCUMENT_ROOT.'/ecm/class/ecmdirectory.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/ecm.lib.php';
|
||||
|
||||
// Load traductions files
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('ecm', 'companies', 'other'));
|
||||
|
||||
$action = GETPOST('action','alpha');
|
||||
|
||||
@ -28,7 +28,7 @@ require_once DOL_DOCUMENT_ROOT.'/ecm/class/ecmfiles.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/ecm.lib.php';
|
||||
|
||||
// Load traductions files
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('ecm', 'companies', 'other', 'users', 'orders', 'propal', 'bills', 'contracts', 'categories'));
|
||||
|
||||
$action = GETPOST('action', 'aZ09');
|
||||
|
||||
@ -37,12 +37,15 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
||||
if (! empty($conf->adherent->enabled)) require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
|
||||
|
||||
$langs->load('companies');
|
||||
$langs->load('suppliers');
|
||||
$langs->load('products');
|
||||
$langs->load('bills');
|
||||
$langs->load('orders');
|
||||
$langs->load('commercial');
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array(
|
||||
'companies',
|
||||
'suppliers',
|
||||
'products',
|
||||
'bills',
|
||||
'orders',
|
||||
'commercial',
|
||||
));
|
||||
|
||||
$action = GETPOST('action','aZ09');
|
||||
$cancelbutton = GETPOST('cancel','alpha');
|
||||
|
||||
@ -32,6 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/images.lib.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/import.lib.php';
|
||||
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('exports', 'compta', 'errors'));
|
||||
|
||||
// Security check
|
||||
|
||||
@ -110,6 +110,7 @@ print '<div class="fichecenter"><div class="fichethirdleft">';
|
||||
*/
|
||||
$boxstat='';
|
||||
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('commercial', 'bills', 'orders', 'contracts'));
|
||||
|
||||
if (empty($user->societe_id))
|
||||
|
||||
@ -474,6 +474,7 @@ if (! defined('NOLOGIN'))
|
||||
if (! $ok)
|
||||
{
|
||||
dol_syslog('Bad value for code, connexion refused');
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('main', 'errors'));
|
||||
|
||||
$_SESSION["dol_loginmesg"]=$langs->trans("ErrorBadValueForCode");
|
||||
@ -551,6 +552,7 @@ if (! defined('NOLOGIN'))
|
||||
if (! $login)
|
||||
{
|
||||
dol_syslog('Bad password, connexion refused',LOG_DEBUG);
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('main', 'errors'));
|
||||
|
||||
// Bad password. No authmode has found a good password.
|
||||
@ -600,6 +602,7 @@ if (! defined('NOLOGIN'))
|
||||
|
||||
if ($resultFetchUser == 0)
|
||||
{
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('main', 'errors'));
|
||||
|
||||
$_SESSION["dol_loginmesg"]=$langs->trans("ErrorCantLoadUserFromDolibarrDatabase",$login);
|
||||
@ -658,6 +661,7 @@ if (! defined('NOLOGIN'))
|
||||
|
||||
if ($resultFetchUser == 0)
|
||||
{
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('main', 'errors'));
|
||||
|
||||
$_SESSION["dol_loginmesg"]=$langs->trans("ErrorCantLoadUserFromDolibarrDatabase",$login);
|
||||
@ -931,6 +935,7 @@ dol_syslog("--- Access to ".$_SERVER["PHP_SELF"].' - action='.GETPOST('action','
|
||||
// Load main languages files
|
||||
if (! defined('NOREQUIRETRAN'))
|
||||
{
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('main', 'dict'));
|
||||
}
|
||||
|
||||
|
||||
@ -29,6 +29,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/margin/lib/margins.lib.php';
|
||||
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('companies', 'bills', 'products', 'margins'));
|
||||
|
||||
$mesg = '';
|
||||
|
||||
@ -29,6 +29,7 @@ require_once DOL_DOCUMENT_ROOT . '/compta/facture/class/facture.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/product/class/product.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT . '/margin/lib/margins.lib.php';
|
||||
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('companies', 'bills', 'products', 'margins'));
|
||||
|
||||
$action = GETPOST('action','alpha');
|
||||
|
||||
@ -28,6 +28,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/margin/lib/margins.lib.php';
|
||||
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('companies', 'bills', 'products', 'margins'));
|
||||
|
||||
// Security check
|
||||
|
||||
@ -28,6 +28,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php';
|
||||
require_once DOL_DOCUMENT_ROOT.'/margin/lib/margins.lib.php';
|
||||
|
||||
// Load translation files required by page
|
||||
$langs->loadLangs(array('companies', 'bills', 'products', 'margins'));
|
||||
|
||||
$id = GETPOST('id', 'int');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user