Merge pull request #12013 from Ahuahuachi/develop

Translate french documentation
This commit is contained in:
Laurent Destailleur 2019-10-03 15:56:42 +02:00 committed by GitHub
commit fce33240f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,8 +29,8 @@ interface Database
* Format a SQL IF * Format a SQL IF
* *
* @param string $test Test string (example: 'cd.statut=0', 'field IS NULL') * @param string $test Test string (example: 'cd.statut=0', 'field IS NULL')
* @param string $resok resultat si test egal * @param string $resok result if test is equal
* @param string $resko resultat si test non egal * @param string $resko result if test is not equal
* @return string SQL string * @return string SQL string
*/ */
public function ifsql($test, $resok, $resko); public function ifsql($test, $resok, $resko);
@ -103,7 +103,7 @@ interface Database
/** /**
* Return the number of lines in the result of a request INSERT, DELETE or UPDATE * Return the number of lines in the result of a request INSERT, DELETE or UPDATE
* *
* @param resource $resultset Curseur de la requete voulue * @param resource $resultset Cursor of the desired request
* @return int Number of lines * @return int Number of lines
* @see num_rows() * @see num_rows()
*/ */
@ -196,10 +196,10 @@ interface Database
public function getPathOfRestore(); public function getPathOfRestore();
/** /**
* Annulation d'une transaction et retour aux anciennes valeurs * Canceling a transaction and returning to old values
* *
* @param string $log Add more log to default log line * @param string $log Add more log to default log line
* @return int 1 si annulation ok ou transaction non ouverte, 0 en cas d'erreur * @return int 1 if cancelation ok or transaction not open, 0 if error
*/ */
public function rollback($log = ''); public function rollback($log = '');
@ -296,12 +296,12 @@ interface Database
* Create a table into database * Create a table into database
* *
* @param string $table Name of table * @param string $table Name of table
* @param array $fields Tableau associatif [nom champ][tableau des descriptions] * @param array $fields Associative table [field name][table of descriptions]
* @param string $primary_key Nom du champ qui sera la clef primaire * @param string $primary_key Name of the field that will be the primary key
* @param string $type Type de la table * @param string $type Type of the table
* @param array $unique_keys Tableau associatifs Nom de champs qui seront clef unique => valeur * @param array $unique_keys Associative array Name of fields that will be unique key => value
* @param array $fulltext_keys Tableau des Nom de champs qui seront indexes en fulltext * @param array $fulltext_keys Field name table that will be indexed in fulltext
* @param array $keys Tableau des champs cles noms => valeur * @param array $keys Table of key fields names => value
* @return int <0 if KO, >=0 if OK * @return int <0 if KO, >=0 if OK
*/ */
public function DDLCreateTable($table, $fields, $primary_key, $type, $unique_keys = null, $fulltext_keys = null, $keys = null); public function DDLCreateTable($table, $fields, $primary_key, $type, $unique_keys = null, $fulltext_keys = null, $keys = null);
@ -330,8 +330,8 @@ interface Database
* *
* @param string $table Name of table * @param string $table Name of table
* @param string $field_name Name of field to add * @param string $field_name Name of field to add
* @param string $field_desc Tableau associatif de description du champ a inserer[nom du parametre][valeur du parametre] * @param string $field_desc Associative array of description of the field to insert [parameter name][parameter value]
* @param string $field_position Optionnel ex.: "after champtruc" * @param string $field_position Optional ex .: "after field stuff"
* @return int <0 if KO, >0 if OK * @return int <0 if KO, >0 if OK
*/ */
public function DDLAddField($table, $field_name, $field_desc, $field_position = ""); public function DDLAddField($table, $field_name, $field_desc, $field_position = "");
@ -372,7 +372,7 @@ interface Database
* Return a pointer of line with description of a table or field * Return a pointer of line with description of a table or field
* *
* @param string $table Name of table * @param string $table Name of table
* @param string $field Optionnel : Name of field if we want description of field * @param string $field Optional : Name of field if we want description of field
* @return resource Resource * @return resource Resource
*/ */
public function DDLDescTable($table, $field = ""); public function DDLDescTable($table, $field = "");
@ -396,9 +396,9 @@ interface Database
/** /**
* Create a user and privileges to connect to database (even if database does not exists yet) * Create a user and privileges to connect to database (even if database does not exists yet)
* *
* @param string $dolibarr_main_db_host Ip serveur * @param string $dolibarr_main_db_host Server IP
* @param string $dolibarr_main_db_user Nom user a creer * @param string $dolibarr_main_db_user Username to create
* @param string $dolibarr_main_db_pass Mot de passe user a creer * @param string $dolibarr_main_db_pass User password to create
* @param string $dolibarr_main_db_name Database name where user must be granted * @param string $dolibarr_main_db_name Database name where user must be granted
* @return int <0 if KO, >=0 if OK * @return int <0 if KO, >=0 if OK
*/ */
@ -444,7 +444,7 @@ interface Database
* List information of columns into a table. * List information of columns into a table.
* *
* @param string $table Name of table * @param string $table Name of table
* @return array Array with inforation on table * @return array Array with information on table
*/ */
public function DDLInfoTable($table); public function DDLInfoTable($table);
// phpcs:enable // phpcs:enable
@ -452,7 +452,7 @@ interface Database
/** /**
* Free last resultset used. * Free last resultset used.
* *
* @param resource $resultset Fre cursor * @param resource $resultset Free cursor
* @return void * @return void
*/ */
public function free($resultset = null); public function free($resultset = null);
@ -483,9 +483,9 @@ interface Database
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/** /**
* Renvoie la ligne courante (comme un objet) pour le curseur resultset * Returns the current line (as an object) for the resultset cursor
* *
* @param resource $resultset Curseur de la requete voulue * @param resource $resultset Cursor of the desired request
* @return Object Object result line or false if KO or end of cursor * @return Object Object result line or false if KO or end of cursor
*/ */
public function fetch_object($resultset); public function fetch_object($resultset);