diff --git a/htdocs/install/check.php b/htdocs/install/check.php
index 09f38fdf452..a5913f9304f 100644
--- a/htdocs/install/check.php
+++ b/htdocs/install/check.php
@@ -40,7 +40,7 @@ $langs->setDefaultLang($setuplang);
$langs->load("install");
-// Now we load forced value from install.forced.php file.
+// Now we load forced/pre-set values from install.forced.php file.
$useforcedwizard=false;
$forcedfile="./install.forced.php";
if ($conffile == "/etc/dolibarr/conf.php") $forcedfile="/etc/dolibarr/install.forced.php";
@@ -49,14 +49,14 @@ if (@file_exists($forcedfile)) {
include_once $forcedfile;
}
-dolibarr_install_syslog("--- check: Dolibarr install/upgrade process started");
+dolibarr_install_syslog("- check: Dolibarr install/upgrade process started");
/*
* View
*/
-pHeader('',''); // No next step for navigation buttons. Next step is defined by clik on links.
+pHeader('',''); // No next step for navigation buttons. Next step is defined by click on links.
//print " \n";
@@ -233,13 +233,13 @@ else
else dolibarr_install_syslog("check: failed to create a new file " . $conffile . " into current dir " . getcwd() . ". Please check permissions.", LOG_ERR);
}
- // First install, we can't upgrade
+ // First install: no upgrade necessary/required
$allowupgrade=false;
}
-// File is missng and can't be created
+// File is missing and cannot be created
if (! file_exists($conffile))
{
print ' '.$langs->trans("ConfFileDoesNotExistsAndCouldNotBeCreated",$conffiletoshow);
@@ -258,7 +258,7 @@ else
$allowinstall=0;
}
- // File exists but can't be modified
+ // File exists but cannot be modified
elseif (!is_writable($conffile))
{
if ($confexists)
@@ -294,7 +294,7 @@ else
}
print " \n";
- // Requirements ok, we display the next step button
+ // Requirements met/all ok: display the next step button
if ($checksok)
{
$ok=0;
@@ -307,7 +307,7 @@ else
{
if (! file_exists($dolibarr_main_document_root."/core/lib/admin.lib.php"))
{
- print 'A '.$conffiletoshow.' file exists with a dolibarr_main_document_root to '.$dolibarr_main_document_root.' that seems wrong. Try to fix or remove the '.$conffiletoshow.' file. '."\n";
+ print 'A '.$conffiletoshow.' file exists with a dolibarr_main_document_root to '.$dolibarr_main_document_root.' that seems wrong. Try to fix or remove the '.$conffiletoshow.' file. '."\n";
dol_syslog("A '" . $conffiletoshow . "' file exists with a dolibarr_main_document_root to " . $dolibarr_main_document_root . " that seems wrong. Try to fix or remove the '" . $conffiletoshow . "' file.", LOG_WARNING);
}
else
@@ -326,7 +326,7 @@ else
else $dolibarr_main_db_pass = dol_decode($dolibarr_main_db_encrypted_pass);
}
- // $conf is already instancied inside inc.php
+ // $conf already created in inc.php
$conf->db->type = $dolibarr_main_db_type;
$conf->db->host = $dolibarr_main_db_host;
$conf->db->port = $dolibarr_main_db_port;
@@ -342,7 +342,7 @@ else
}
}
- // If a database access is available, we set more variable
+ // If database access is available, we set more variables
if ($ok)
{
if (empty($dolibarr_main_db_encryption)) $dolibarr_main_db_encryption=0;
@@ -364,8 +364,8 @@ else
// Show title
if (! empty($conf->global->MAIN_VERSION_LAST_UPGRADE) || ! empty($conf->global->MAIN_VERSION_LAST_INSTALL))
{
- print $langs->trans("VersionLastUpgrade").': '.(empty($conf->global->MAIN_VERSION_LAST_UPGRADE)?$conf->global->MAIN_VERSION_LAST_INSTALL:$conf->global->MAIN_VERSION_LAST_UPGRADE).' ';
- print $langs->trans("VersionProgram").': '.DOL_VERSION.'';
+ print $langs->trans("VersionLastUpgrade").': '.(empty($conf->global->MAIN_VERSION_LAST_UPGRADE)?$conf->global->MAIN_VERSION_LAST_INSTALL:$conf->global->MAIN_VERSION_LAST_UPGRADE).' ';
+ print $langs->trans("VersionProgram").': '.DOL_VERSION.'';
//print ' '.img_warning($langs->trans("RunningUpdateProcessMayBeRequired"));
print ' ';
print ' ';
@@ -375,7 +375,7 @@ else
print $langs->trans("InstallEasy")." ";
print $langs->trans("ChooseYourSetupMode");
- print '
';
+ print ' ';
$foundrecommandedchoice=0;
@@ -383,9 +383,9 @@ else
$notavailable_choices = array();
// Show first install line
- $choice = '
';
$choice .= $langs->trans("FreshInstallDesc");
if (empty($dolibarr_main_db_host)) // This means install process was not run
{
@@ -397,7 +397,7 @@ else
}
$choice .= '
';
- $choice .= '
';
+ $choice .= '
';
if ($allowinstall)
{
$choice .= ''.$langs->trans("Start").'';
@@ -465,7 +465,7 @@ else
if ($ok)
{
- if (count($dolibarrlastupgradeversionarray) >= 2) // If a database access is available and last upgrade version is known
+ if (count($dolibarrlastupgradeversionarray) >= 2) // If database access is available and last upgrade version is known
{
// Now we check if this is the first qualified choice
if ($allowupgrade && empty($foundrecommandedchoice) &&
@@ -477,22 +477,23 @@ else
}
}
else {
- // We can not recommand a choice.
+ // We cannot recommend a choice.
// A version of install may be known, but we need last upgrade.
}
}
- $choice .= '
';
- if ($count < count($migarray)) // There is other choices after
+ $choice .= '
';
+ $choice .= '
'.$langs->trans("InstallChoiceSuggested").'
';
+ if ($count < count($migarray)) // There are other choices after
{
print $langs->trans("MigrateIsDoneStepByStep",DOL_VERSION);
}
@@ -500,7 +501,7 @@ else
}
$choice .= '
';
diff --git a/htdocs/install/repair.php b/htdocs/install/repair.php
index 97f9a71bb87..0c3edfaebd3 100644
--- a/htdocs/install/repair.php
+++ b/htdocs/install/repair.php
@@ -549,11 +549,11 @@ if ($ok && GETPOST('clean_menus','alpha'))
dol_print_error($db);
}
else
- print ' - Cleaned';
+ print ' - Cleaned';
}
else
{
- print ' - Canceled (test mode)';
+ print ' - Canceled (test mode)';
}
}
else
@@ -982,11 +982,11 @@ if ($ok && GETPOST('force_disable_of_modules_not_found','alpha'))
dol_print_error($db);
}
else
- print ' - Cleaned';
+ print ' - Cleaned';
}
else
{
- print ' - Canceled (test mode)';
+ print ' - Canceled (test mode)';
}
}
else
diff --git a/htdocs/install/step1.php b/htdocs/install/step1.php
index 6f1143d6f10..f6f1571b4ec 100644
--- a/htdocs/install/step1.php
+++ b/htdocs/install/step1.php
@@ -46,7 +46,7 @@ $main_dir = GETPOST('main_dir')?GETPOST('main_dir'):(empty($argv[3])?'':$argv[3]
$main_data_dir = GETPOST('main_data_dir') ? GETPOST('main_data_dir') : (empty($argv[4])? ($main_dir . '/documents') :$argv[4]);
// Dolibarr root URL
$main_url = GETPOST('main_url')?GETPOST('main_url'):(empty($argv[5])?'':$argv[5]);
-// Database login informations
+// Database login information
$userroot=GETPOST('db_user_root','alpha')?GETPOST('db_user_root','alpha'):(empty($argv[6])?'':$argv[6]);
$passroot=GETPOST('db_pass_root','none')?GETPOST('db_pass_root','none'):(empty($argv[7])?'':$argv[7]);
// Database server
@@ -68,18 +68,18 @@ $main_alt_dir_name = ((GETPOST("main_alt_dir_name",'alpha') && GETPOST("main_alt
session_start(); // To be able to keep info into session (used for not losing password during navigation. The password must not transit through parameters)
-// Save a flag to tell to restore input value if we do back
+// Save a flag to tell to restore input value if we go back
$_SESSION['dol_save_pass']=$db_pass;
//$_SESSION['dol_save_passroot']=$passroot;
-// Now we load forced value from install.forced.php file.
+// Now we load forced values from install.forced.php file.
$useforcedwizard=false;
$forcedfile="./install.forced.php";
if ($conffile == "/etc/dolibarr/conf.php") $forcedfile="/etc/dolibarr/install.forced.php";
if (@file_exists($forcedfile)) {
$useforcedwizard = true;
include_once $forcedfile;
- // If forced install is enabled, let's replace post values. These are empty because form fields are disabled.
+ // If forced install is enabled, replace the post values. These are empty because form fields are disabled.
if ($force_install_noedit) {
$main_dir = detect_dolibarr_main_document_root();
if (!empty($force_install_main_data_root)) {
@@ -204,7 +204,7 @@ if (! $error) {
$result=@include_once $main_dir."/core/db/".$db_type.'.class.php';
if ($result)
{
- // If we ask database or user creation we need to connect as root, so we need root login
+ // If we require database or user creation we need to connect as root, so we need root login credentials
if (!empty($db_create_database) && !$userroot) {
print '
';
$error++;
@@ -420,7 +420,7 @@ if (! $error && $db->connected && $action == "set")
}
}
- // Les documents sont en dehors de htdocs car ne doivent pas pouvoir etre telecharges en passant outre l'authentification
+ // Documents are stored above the web pages root to prevent being downloaded without authentification
$dir=array();
$dir[] = $main_data_dir."/mycompany";
$dir[] = $main_data_dir."/medias";
@@ -431,7 +431,7 @@ if (! $error && $db->connected && $action == "set")
$dir[] = $main_data_dir."/produit";
$dir[] = $main_data_dir."/doctemplates";
- // Boucle sur chaque repertoire de dir[] pour les creer s'ils nexistent pas
+ // Loop on each directory of dir [] to create them if they do not exist
$num=count($dir);
for ($i = 0; $i < $num; $i++)
{
@@ -469,7 +469,7 @@ if (! $error && $db->connected && $action == "set")
print "
';
}
@@ -519,7 +519,7 @@ if (! $error && $db->connected && $action == "set")
// Save old conf file on disk
if (file_exists("$conffile"))
{
- // We must ignore errors as an existing old file may already exists and not be replacable or
+ // We must ignore errors as an existing old file may already exist and not be replaceable or
// the installer (like for ubuntu) may not have permission to create another file than conf.php.
// Also no other process must be able to read file or we expose the new file, so content with password.
@dol_copy($conffile, $conffile.'.old', '0400');
@@ -539,7 +539,7 @@ if (! $error && $db->connected && $action == "set")
print '';
print '
';
- // Si creation utilisateur admin demandee, on le cree
+ // Create database user if requested
if (isset($db_create_user) && ($db_create_user == "1" || $db_create_user == "on")) {
dolibarr_install_syslog("step1: create database user: " . $dolibarr_main_db_user);
@@ -558,7 +558,7 @@ if (! $error && $db->connected && $action == "set")
$databasefortest='master';
}
- // Creation handler de base, verification du support et connexion
+ // Check database connection
$db=getDoliDBInstance($conf->db->type,$conf->db->host,$userroot,$passroot,$databasefortest,$conf->db->port);
@@ -629,7 +629,7 @@ if (! $error && $db->connected && $action == "set")
print '
';
print '';
- // Affiche aide diagnostique
+ // warning message due to connection failure
print '
';
print $langs->trans("YouAskDatabaseCreationSoDolibarrNeedToConnect",$dolibarr_main_db_user,$dolibarr_main_db_host,$userroot);
print ' ';
@@ -640,10 +640,10 @@ if (! $error && $db->connected && $action == "set")
$error++;
}
}
- } // Fin si "creation utilisateur"
+ } // end of user account creation
- // If database creation is asked, we create it
+ // If database creation was asked, we create it
if (!$error && (isset($db_create_database) && ($db_create_database == "1" || $db_create_database == "on"))) {
dolibarr_install_syslog("step1: create database: " . $dolibarr_main_db_name . " " . $dolibarr_main_db_character_set . " " . $dolibarr_main_db_collation . " " . $dolibarr_main_db_user);
$newdb=getDoliDBInstance($conf->db->type,$conf->db->host,$userroot,$passroot,'',$conf->db->port);
@@ -672,7 +672,7 @@ if (! $error && $db->connected && $action == "set")
}
else
{
- // Affiche aide diagnostique
+ // warning message
print '
';
print $langs->trans("YouAskDatabaseCreationSoDolibarrNeedToConnect",$dolibarr_main_db_user,$dolibarr_main_db_host,$userroot);
print ' ';
@@ -703,7 +703,7 @@ if (! $error && $db->connected && $action == "set")
$error++;
}
- } // Fin si "creation database"
+ } // end of create database
// We test access with dolibarr database user (not admin)
@@ -724,7 +724,7 @@ if (! $error && $db->connected && $action == "set")
print '';
print "
";
- // si acces serveur ok et acces base ok, tout est ok, on ne va pas plus loin, on a meme pas utilise le compte root.
+ // server access ok, basic access ok
if ($db->database_selected)
{
dolibarr_install_syslog("step1: connection to database " . $conf->db->name . " by user " . $conf->db->user . " ok");
@@ -747,7 +747,7 @@ if (! $error && $db->connected && $action == "set")
print '';
print "";
- // Affiche aide diagnostique
+ // warning message
print '
';
print $langs->trans("ErrorConnection",$conf->db->host,$conf->db->name,$conf->db->user);
print $langs->trans('IfLoginDoesNotExistsCheckCreateUser').' ';
@@ -1023,7 +1023,7 @@ function write_conf_file($conffile)
if (file_exists("$conffile"))
{
- include $conffile; // On force rechargement. Ne pas mettre include_once !
+ include $conffile; // force config reload, do not put include_once
conf($dolibarr_main_document_root);
print "
";
diff --git a/htdocs/install/step2.php b/htdocs/install/step2.php
index 30b3ff7d64f..b9adb5dac21 100644
--- a/htdocs/install/step2.php
+++ b/htdocs/install/step2.php
@@ -58,7 +58,7 @@ if ($dolibarr_main_db_type == "sqlite3") $choix=5;
//if (empty($choix)) dol_print_error('','Database type '.$dolibarr_main_db_type.' not supported into step2.php page');
-// Now we load forced value from install.forced.php file.
+// Now we load forced values from install.forced.php file.
$useforcedwizard=false;
$forcedfile="./install.forced.php";
if ($conffile == "/etc/dolibarr/conf.php") $forcedfile="/etc/dolibarr/install.forced.php";
@@ -67,7 +67,7 @@ if (@file_exists($forcedfile)) {
include_once $forcedfile;
}
-dolibarr_install_syslog("--- step2: entering step2.php page");
+dolibarr_install_syslog("- step2: entering step2.php page");
/*
@@ -88,7 +88,7 @@ if ($action == "set")
{
print '
'.$langs->trans("Error")." Failed to open file ".$dir.$file."
";
+ print '
'.$langs->trans("Error")." Failed to open file ".$dir.$file."
";
$error++;
dolibarr_install_syslog("step2: failed to open file " . $dir . $file, LOG_ERR);
}
@@ -417,7 +417,7 @@ if ($action == "set")
***************************************************************************************/
if ($ok && $createfunctions)
{
- // For this file, we use directory according to database type
+ // For this file, we use a directory according to database type
if ($choix==1) $dir = "mysql/functions/";
elseif ($choix==2) $dir = "pgsql/functions/";
elseif ($choix==3) $dir = "mssql/functions/";
@@ -473,7 +473,7 @@ if ($action == "set")
print "