';
+
+ print '';
+
+ if ($mesg) print $mesg;
+}
+
+
+
print ' ';
diff --git a/htdocs/includes/modules/import/import_csv.modules.php b/htdocs/includes/modules/import/import_csv.modules.php
index d473a894370..fc66fb72feb 100644
--- a/htdocs/includes/modules/import/import_csv.modules.php
+++ b/htdocs/includes/modules/import/import_csv.modules.php
@@ -273,7 +273,7 @@ class ImportCsv extends ModeleImports
function import_insert($arrayrecord,$array_match_file_to_database,$objimport,$maxfields,$importid)
{
global $langs,$conf;
-
+
$error=0;
$warning=0;
$this->errors=array();
@@ -331,7 +331,7 @@ class ImportCsv extends ModeleImports
// Make some tests
// Required field is ok
- if (eregi('\*',$objimport->array_import_fields[0][$val]) && empty($newval))
+ if (eregi('\*',$objimport->array_import_fields[0][$val]) && ($newval==''))
{
$this->errors[$error]['lib']=$langs->trans('ErrorMissingMandatoryValue',$key);
$this->errors[$error]['type']='NOTNULL';
@@ -351,7 +351,7 @@ class ImportCsv extends ModeleImports
{
if ($listfields)
{
- $sql='INSERT INTO '.$tablename.'('.$listfields.',import_key) VALUES('.$listvalues.",'".$importid."')";
+ $sql='INSERT INTO '.$tablename.'('.$listfields.', import_key) VALUES('.$listvalues.", '".$importid."')";
dol_syslog("import_csv.modules sql=".$sql);
//print '> '.join(',',$arrayrecord);
@@ -369,7 +369,6 @@ class ImportCsv extends ModeleImports
else
{
//print 'E';
-print $sql;
$this->errors[$error]['lib']=$this->db->lasterror();
$this->errors[$error]['type']='SQL';
$error++;
diff --git a/htdocs/langs/en_US/errors.lang b/htdocs/langs/en_US/errors.lang
index b74c1544a64..5979b1a8908 100644
--- a/htdocs/langs/en_US/errors.lang
+++ b/htdocs/langs/en_US/errors.lang
@@ -1,5 +1,7 @@
# Dolibarr language file - en_US - errors
CHARSET=UTF-8
+Error=Error
+Errors=Errors
MenuManager=Menu manager
ErrorLoginAlreadyExists=Login %s already exists.
ErrorGroupAlreadyExists=Group %s already exists.
@@ -51,4 +53,6 @@ ErrorRecordHasChildren=Failed to delete records since it has some childs.
WarningConfFileMustBeReadOnly=Warning, your config file (htdocs/conf/conf.php) can be overwritten by the web server. This is a serious security hole. Modify permissions on file to be in read only mode for operating system user used by Web server. If you use Windows and FAT format for your disk, you must know that this file system does not allow to add permissions on file, so can't be completely safe.
ErrorModuleRequireJavascript=Javascript must not be disabled to have this feature working. To enable/disable Javascript, go to menu Home->Setup->Display.
ErrorPasswordsMustMatch=Both typed passwords must match each other
-ErrorContactEMail=A technical error occured. Pleas, contact administrator to folowwing email % en provide the error code %s in your message, or even better by adding a screen copy of this page.
\ No newline at end of file
+ErrorContactEMail=A technical error occured. Please, contact administrator to folowwing email % en provide the error code %s in your message, or even better by adding a screen copy of this page.
+ErrorsOnXLines=Errors on %s source lines
+WarningsOnXLines=Warnings on %s source lines
\ No newline at end of file
diff --git a/htdocs/langs/en_US/main.lang b/htdocs/langs/en_US/main.lang
index 9c2988c1ab3..03cc9b2ecab 100644
--- a/htdocs/langs/en_US/main.lang
+++ b/htdocs/langs/en_US/main.lang
@@ -540,6 +540,7 @@ CreditCard=Credit card
FieldsWithAreMandatory=Fields with %s are mandatory
FieldsWithIsForPublic=Fields with %s are shown on public list of members. If you don't want this, check the "public" box.
AccordingToGeoIPDatabase=(according to GeoIP convertion)
+Line=Line
# Week day
Day1=Monday
diff --git a/htdocs/langs/fr_FR/errors.lang b/htdocs/langs/fr_FR/errors.lang
index b85bf0c77ae..053e71bd83d 100644
--- a/htdocs/langs/fr_FR/errors.lang
+++ b/htdocs/langs/fr_FR/errors.lang
@@ -1,5 +1,7 @@
# Dolibarr language file - fr_FR - errors
CHARSET=UTF-8
+Error=Erreur
+Errors=Erreurs
MenuManager=Gestionnaire de menu
ErrorLoginAlreadyExists=Le login %s existe déjà.
ErrorGroupAlreadyExists=Le groupe %s existe déjà.
@@ -53,3 +55,5 @@ WarningConfFileMustBeReadOnly=Attention, votre fichier de configuration (htdo
ErrorModuleRequireJavascript=Le javascript ne doit pas etre désactivé pour que cette fonctionnalité soit utilisable. Pour activer/désactiver l'utilisation de javascript, aller dans le menu Accueil->Configuration->Affichage.
ErrorPasswordsMustMatch=Les 2 mots de passe saisis doivent correspondre
ErrorContactEMail=Une erreur technique est apparue. Merci de contacter l'administrateur à l'email suivant %s en lui indiquant le code erreur %s dans votre message ou mieux en fournissant une copie d'écran de cette page.
+ErrorsOnXLines=Erreurs sur %s lines sources
+WarningsOnXLines=Alertes sur %s lines sources
\ No newline at end of file
diff --git a/htdocs/langs/fr_FR/main.lang b/htdocs/langs/fr_FR/main.lang
index 1ab2d47b6c6..d13583b38e4 100644
--- a/htdocs/langs/fr_FR/main.lang
+++ b/htdocs/langs/fr_FR/main.lang
@@ -539,6 +539,7 @@ CreditCard=Carte de crédit
FieldsWithAreMandatory=Les champs marqués par un %s sont obligatoires
FieldsWithIsForPublic=Les champs marqués par %s seront affiches sur la liste publique des membres. Si vous ne le souhaitez pas, décochez la case "public".
AccordingToGeoIPDatabase=(obtenu par conversion GeoIP)
+Line=Ligne
# Week day
Day1=Lundi