Fix translation

This commit is contained in:
Laurent Destailleur 2016-08-11 17:41:09 +02:00
parent f674b24945
commit 7cc7ac5485

View File

@ -57,7 +57,7 @@ class printing_printgcp extends PrintingDriver
*/ */
function __construct($db) function __construct($db)
{ {
global $conf, $dolibarr_main_url_root; global $conf, $langs, $dolibarr_main_url_root;
// Define $urlwithroot // Define $urlwithroot
$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',trim($dolibarr_main_url_root)); $urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',trim($dolibarr_main_url_root));
@ -66,7 +66,7 @@ class printing_printgcp extends PrintingDriver
$this->db = $db; $this->db = $db;
if (!$conf->oauth->enabled) { if (!$conf->oauth->enabled) {
$this->conf[] = array('varname'=>'PRINTGCP_INFO', 'info'=>'ModuleAuthNotActive', 'type'=>'info'); $this->conf[] = array('varname'=>'PRINTGCP_INFO', 'info'=>$langs->transnoentitiesnoconv("WarningModuleNotActive", "OAuth"), 'type'=>'info');
} else { } else {
$this->google_id = $conf->global->OAUTH_GOOGLE_ID; $this->google_id = $conf->global->OAUTH_GOOGLE_ID;