Trad: Traduction export

This commit is contained in:
Laurent Destailleur 2008-01-27 22:03:07 +00:00
parent 64925dc753
commit e457261eac
6 changed files with 60 additions and 35 deletions

View File

@ -1,5 +1,5 @@
<?php <?php
/* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2006-2008 Laurent Destailleur <eldy@users.sourceforge.net>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -14,14 +14,13 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/admin/tools/dolibarr_export.php \file htdocs/admin/tools/dolibarr_export.php
\ingroup core
\brief Page export de la base \brief Page export de la base
\version $Revision$ \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
@ -182,10 +181,10 @@ function show_checked_option() {
<fieldset id="mysql_options"> <fieldset id="mysql_options">
<legend>Parametres de l'export MySQL</legend> <legend><?php echo $langs->trans("MySqlExportParameters"); ?></legend>
<div class="formelementrow"> <div class="formelementrow">
Chemin complet de la commande mysqldump:<br /> <?php echo $langs->trans("FullPathToMysqldumpCommand"); ?><br />
<input type="text" name="mysqldump" size="80" <input type="text" name="mysqldump" size="80"
value="<?php echo $conf->global->SYSTEMTOOLS_MYSQLDUMP ?>" /> value="<?php echo $conf->global->SYSTEMTOOLS_MYSQLDUMP ?>" />
</div> </div>
@ -195,7 +194,7 @@ function show_checked_option() {
id="checkbox_use_transaction" id="checkbox_use_transaction"
/> />
<label for="checkbox_use_transaction"> <label for="checkbox_use_transaction">
Utiliser le mode transactionnel</label> <?php echo $langs->trans("UseTransactionnalMode"); ?></label>
</div> </div>
@ -204,10 +203,10 @@ function show_checked_option() {
id="checkbox_disable_fk" checked="true" id="checkbox_disable_fk" checked="true"
/> />
<label for="checkbox_disable_fk"> <label for="checkbox_disable_fk">
Ordre de désactivation des clés étrangères à l'import</label> <?php echo $langs->trans("CommandsToDisableForeignKeysForImport"); ?></label>
</div> </div>
<label for="select_sql_compat"> <label for="select_sql_compat">
Compatibilité de l'exportation:</label> <?php echo $langs->trans("ExportCompatibility"); ?></label>
<select name="sql_compat" id="select_sql_compat"> <select name="sql_compat" id="select_sql_compat">
<option value="NONE" selected="selected">NONE</option> <option value="NONE" selected="selected">NONE</option>
@ -221,13 +220,11 @@ function show_checked_option() {
<option value="POSTGRESQL">POSTGRESQL</option> <option value="POSTGRESQL">POSTGRESQL</option>
</select> </select>
<fieldset> <fieldset>
<legend>Options d'exportation</legend> <legend><?php echo $langs->trans("ExportOptions"); ?></legend>
<input type="checkbox" name="drop_database" value="yes" <input type="checkbox" name="drop_database" value="yes"
id="checkbox_drop_database" id="checkbox_drop_database"
/> />
<label for="checkbox_drop_database"> <label for="checkbox_drop_database"><?php echo $langs->trans("AddDropDatabase"); ?></label>
Ajouter DROP DATABASE</label>
</fieldset> </fieldset>
<fieldset> <fieldset>
<legend> <legend>
@ -243,8 +240,7 @@ function show_checked_option() {
<input type="checkbox" name="drop" value="1" id="checkbox_dump_drop" <input type="checkbox" name="drop" value="1" id="checkbox_dump_drop"
/> />
<label for="checkbox_dump_drop"> <label for="checkbox_dump_drop"><?php echo $langs->trans("AddDropTable"); ?></label><br />
Inclure des énoncés "DROP TABLE"</label><br />
</fieldset> </fieldset>
<fieldset> <fieldset>
@ -256,26 +252,26 @@ function show_checked_option() {
return false; return false;
else return true;" /> else return true;" />
<label for="checkbox_sql_data"> <label for="checkbox_sql_data">
Données</label> <?php echo $langs->trans("Datas"); ?></label>
</legend> </legend>
<input type="checkbox" name="showcolumns" value="yes" <input type="checkbox" name="showcolumns" value="yes"
id="checkbox_dump_showcolumns" id="checkbox_dump_showcolumns"
/> />
<label for="checkbox_dump_showcolumns"> <label for="checkbox_dump_showcolumns">
Nomme les colonnes</label><br /> <?php echo $langs->trans("NameColumn"); ?></label><br />
<input type="checkbox" name="extended_ins" value="yes" <input type="checkbox" name="extended_ins" value="yes"
id="checkbox_dump_extended_ins" id="checkbox_dump_extended_ins"
/> />
<label for="checkbox_dump_extended_ins"> <label for="checkbox_dump_extended_ins">
Insertions étendues</label><br /> <?php echo $langs->trans("ExtendedInsert"); ?></label><br />
<input type="checkbox" name="delayed" value="yes" <input type="checkbox" name="delayed" value="yes"
id="checkbox_dump_delayed" id="checkbox_dump_delayed"
/> />
<label for="checkbox_dump_delayed"> <label for="checkbox_dump_delayed">
Insertions avec délais (DELAYED)</label><br /> <?php echo $langs->trans("DelayedInsert"); ?></label><br />
<input type="checkbox" name="sql_ignore" value="yes" <input type="checkbox" name="sql_ignore" value="yes"
id="checkbox_dump_ignore" id="checkbox_dump_ignore"
@ -287,7 +283,7 @@ function show_checked_option() {
id="checkbox_hexforbinary" id="checkbox_hexforbinary"
checked="checked" /> checked="checked" />
<label for="checkbox_hexforbinary"> <label for="checkbox_hexforbinary">
Encoder les champs binaires en hexadécimal</label><br /> <?php echo $langs->trans("EncodeBinariesInHexa"); ?></label><br />
</fieldset> </fieldset>
</fieldset> </fieldset>
@ -335,7 +331,7 @@ function show_checked_option() {
</td> </td>
</tr> </tr>
<tr><td><label for="latex_structure_label"> <tr><td><label for="latex_structure_label">
Clé de l'étiquette</label></td> Cl<EFBFBD> de l'<EFBFBD>tiquette</label></td>
<td><input type="text" name="latex_structure_label" size="30" <td><input type="text" name="latex_structure_label" size="30"
value="tab:__TABLE__-structure" value="tab:__TABLE__-structure"
id="latex_structure_label" /> id="latex_structure_label" />
@ -354,7 +350,7 @@ function show_checked_option() {
return false; return false;
else return true;" /> else return true;" />
<label for="checkbox_latex_data"> <label for="checkbox_latex_data">
Données</label> Donn<EFBFBD>es</label>
</legend> </legend>
<input type="checkbox" name="latex_showcolumns" value="yes" <input type="checkbox" name="latex_showcolumns" value="yes"
@ -380,7 +376,7 @@ function show_checked_option() {
</tr> </tr>
<tr><td><label for="latex_data_label"> <tr><td><label for="latex_data_label">
Clé de l'étiquette</label></td> Cl<EFBFBD> de l'<EFBFBD>tiquette</label></td>
<td><input type="text" name="latex_data_label" size="30" <td><input type="text" name="latex_data_label" size="30"
value="tab:__TABLE__-data" value="tab:__TABLE__-data"
id="latex_data_label" /> id="latex_data_label" />
@ -407,14 +403,14 @@ function show_checked_option() {
<table> <table>
<tr><td><label for="export_separator"> <tr><td><label for="export_separator">
Champs terminés par</label></td> Champs termin<EFBFBD>s par</label></td>
<td><input type="text" name="export_separator" size="2" <td><input type="text" name="export_separator" size="2"
id="export_separator" id="export_separator"
value=";" /> value=";" />
</td> </td>
</tr> </tr>
<tr><td><label for="enclosed"> <tr><td><label for="enclosed">
Champs entourés par</label></td> Champs entour<EFBFBD>s par</label></td>
<td><input type="text" name="enclosed" size="2" <td><input type="text" name="enclosed" size="2"
id="enclosed" id="enclosed"
value="&quot;" /> value="&quot;" />
@ -422,7 +418,7 @@ function show_checked_option() {
</td> </td>
</tr> </tr>
<tr><td><label for="escaped"> <tr><td><label for="escaped">
Caractère spécial</label></td> Caract<EFBFBD>re sp<EFBFBD>cial</label></td>
<td><input type="text" name="escaped" size="2" <td><input type="text" name="escaped" size="2"
id="escaped" id="escaped"
value="\" /> value="\" />
@ -430,7 +426,7 @@ function show_checked_option() {
</tr> </tr>
<tr><td><label for="add_character"> <tr><td><label for="add_character">
Lignes terminées par</label></td> Lignes termin<EFBFBD>es par</label></td>
<td><input type="text" name="add_character" size="2" <td><input type="text" name="add_character" size="2"
id="add_character" id="add_character"
value="\r\n" /> value="\r\n" />
@ -449,7 +445,7 @@ function show_checked_option() {
id="checkbox_dump_showcsvnames" id="checkbox_dump_showcsvnames"
/> />
<label for="checkbox_dump_showcsvnames"> <label for="checkbox_dump_showcsvnames">
Afficher les noms de champ en première ligne</label> Afficher les noms de champ en premi<EFBFBD>re ligne</label>
</fieldset> </fieldset>
--> -->
@ -492,9 +488,9 @@ function show_checked_option() {
<fieldset> <fieldset>
<label for="filename_template"> <label for="filename_template">
Nom du fichier à générer</label> : <?php echo $langs->trans("FileNameToGenerate"); ?></label> :
<input type="text" name="filename_template" size="60" id="filename_template" <input type="text" name="filename_template" size="60" id="filename_template"
value="<?php value="<?php
$file='mysqldump_'.$dolibarr_main_db_name.'_'.strftime("%Y%m%d%H%M").'.sql'; $file='mysqldump_'.$dolibarr_main_db_name.'_'.strftime("%Y%m%d%H%M").'.sql';
@ -523,12 +519,12 @@ foreach($compression as $key => $val)
{ {
print '<input type="radio" name="compression" value="'.$key.'" id="'.$val['id'].'"'; print '<input type="radio" name="compression" value="'.$key.'" id="'.$val['id'].'"';
print ' onclick="document.getElementById(\'checkbox_dump_asfile\').checked = true;" checked="checked" />'; print ' onclick="document.getElementById(\'checkbox_dump_asfile\').checked = true;" checked="checked" />';
print ' <label for="radio_compression_none">'.$val['label'].'</label>'; print ' <label for="'.$val['id'].'">'.$val['label'].'</label>';
} }
else else
{ {
print '<input type="radio" name="compression" value="'.$key.'" id="'.$val['id'].'" disabled="true">'; print '<input type="radio" name="compression" value="'.$key.'" id="'.$val['id'].'" disabled="true">';
print ' <label for="radio_compression_none">'.$val['label'].'</label>'; print ' <label for="'.$val['id'].'">'.$val['label'].'</label>';
print ' ('.$langs->trans("NotAvailable").')'; print ' ('.$langs->trans("NotAvailable").')';
} }
print ' &nbsp; &nbsp; '; print ' &nbsp; &nbsp; ';

View File

@ -14,14 +14,12 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
*/ */
/** /**
\file htdocs/admin/tools/export.php \file htdocs/admin/tools/export.php
\brief Page export de la base \brief Page export de la base
\version $Revision$ \version $Id$
*/ */
require("./pre.inc.php"); require("./pre.inc.php");
@ -164,6 +162,7 @@ if ($what == 'mysql')
} }
else else
{ {
$langs->load("errors");
dolibarr_syslog("Failed to open file $outputfile",LOG_ERR); dolibarr_syslog("Failed to open file $outputfile",LOG_ERR);
$errormsg=$langs->trans("ErrorFailedToWriteInDir"); $errormsg=$langs->trans("ErrorFailedToWriteInDir");
} }

View File

@ -106,6 +106,20 @@ ImportMethod=Import method
ToBuildBackupFileClickHere=To build a backup file, click <a href="%s">here</a>. ToBuildBackupFileClickHere=To build a backup file, click <a href="%s">here</a>.
ImportMySqlDesc=To import a backup file, you must use mysql command from command line: ImportMySqlDesc=To import a backup file, you must use mysql command from command line:
ImportMySqlCommand=%s %s < mybackupfile.sql ImportMySqlCommand=%s %s < mybackupfile.sql
FileNameToGenerate=File name to generate
CommandsToDisableForeignKeysForImport=Command to disable foreign keys on import
ExportCompatibility=Compatibilité du fichier export généré
MySqlExportParameters=MySql export parameters
UseTransactionnalMode=Use transactionnal mode
FullPathToMysqldumpCommand=Full path to mysqldump command
ExportOptions=Export Options
AddDropDatabase=Add DROP DATABASE command
AddDropTable=Add DROP TABLE command
Datas=Datas
NameColumn=Name columns
ExtendedInsert=Extended INSERT
DelayedInsert=Insert with delays
EncodeBinariesInHexa=Encode binary datas in hexadecimal
Yes=Yes Yes=Yes
No=No No=No
AutoDetectLang=Autodetect (browser language) AutoDetectLang=Autodetect (browser language)

View File

@ -13,6 +13,7 @@ ErrorBadSupplierCodeSyntax=Bad syntax for supplier code
ErrorSupplierCodeRequired=Supplier code required ErrorSupplierCodeRequired=Supplier code required
ErrorSupplierCodeAlreadyUsed=Supplier code already used ErrorSupplierCodeAlreadyUsed=Supplier code already used
ErrorBadParameters=Bad parameters ErrorBadParameters=Bad parameters
ErrorFailedToWriteInDir=Failed to write in directory %s
UserCannotBeDelete=User can not be deleted. May be it is associated on Dolibarr entities. UserCannotBeDelete=User can not be deleted. May be it is associated on Dolibarr entities.
ErrorFieldsRequired=Some required fields were not filled. ErrorFieldsRequired=Some required fields were not filled.
ErrorFailedToCreateDir=Failed to create a directory. Check that Web server user has permissions to write into Dolibarr documents directory. If parameter <b>safe_mode</b> is enabled on this PHP, check that Dolibarr php files owns to web server user (or group). ErrorFailedToCreateDir=Failed to create a directory. Check that Web server user has permissions to write into Dolibarr documents directory. If parameter <b>safe_mode</b> is enabled on this PHP, check that Dolibarr php files owns to web server user (or group).

View File

@ -106,6 +106,20 @@ ImportMethod=M
ToBuildBackupFileClickHere=Pour générer un fichier de sauvegarde, cliquez <a href="%s">ici</a>. ToBuildBackupFileClickHere=Pour générer un fichier de sauvegarde, cliquez <a href="%s">ici</a>.
ImportMySqlDesc=Pour importer une sauvegarde, il faut utiliser la commande mysql en ligne suivante: ImportMySqlDesc=Pour importer une sauvegarde, il faut utiliser la commande mysql en ligne suivante:
ImportMySqlCommand=%s %s < monfichierbackup.sql ImportMySqlCommand=%s %s < monfichierbackup.sql
FileNameToGenerate=Nom du fichier à générer
CommandsToDisableForeignKeysForImport=Commande pour désactiver les clés étrangères à l'import
ExportCompatibility=Compatibilité du fichier export généré
MySqlExportParameters=Paramètres de l'export MySql
UseTransactionnalMode=Utiliser le mode transactionnel
FullPathToMysqldumpCommand=Chemin complet vers la commande mysqldump
ExportOptions=Options d'exportation
AddDropDatabase=Ajouter ordres DROP DATABASE
AddDropTable=Ajouter ordres DROP TABLE
Datas=Données
NameColumn=Nomme les colonnes
ExtendedInsert=Instructions INSERT étendues
DelayedInsert=Insertion avec délais
EncodeBinariesInHexa=Encoder les champs binaires en hexadécimal
Yes=Oui Yes=Oui
No=Non No=Non
AutoDetectLang=Détection auto (navigateur) AutoDetectLang=Détection auto (navigateur)

View File

@ -13,6 +13,7 @@ ErrorBadSupplierCodeSyntax=La syntaxe du code fournisseur est incorrect
ErrorSupplierCodeRequired=Code fournisseur obligatoire ErrorSupplierCodeRequired=Code fournisseur obligatoire
ErrorSupplierCodeAlreadyUsed=Code fournisseur deja utilise ErrorSupplierCodeAlreadyUsed=Code fournisseur deja utilise
ErrorBadParameters=Parametres incorrects ErrorBadParameters=Parametres incorrects
ErrorFailedToWriteInDir=Impossible d'écrire dans le répertoire %s
UserCannotBeDelete=L'utilisateur ne peut pas etre supprimée. Peut-être est-il associé à des éléments de Dolibarr. UserCannotBeDelete=L'utilisateur ne peut pas etre supprimée. Peut-être est-il associé à des éléments de Dolibarr.
ErrorFieldsRequired=Des champs obligatoires n'ont pas été renseignés ErrorFieldsRequired=Des champs obligatoires n'ont pas été renseignés
ErrorFailedToCreateDir=Echec a la creation d'un repertoire. Verifiez que le user du serveur Web a bien les droits d'ecriture dans les repertoires documents de Dolibarr. Si le parametre <b>safe_mode</b> a été activé sur ce PHP, vérifier que les fichiers php dolibarr appartiennent à l'utilisateur du serveur Web. ErrorFailedToCreateDir=Echec a la creation d'un repertoire. Verifiez que le user du serveur Web a bien les droits d'ecriture dans les repertoires documents de Dolibarr. Si le parametre <b>safe_mode</b> a été activé sur ce PHP, vérifier que les fichiers php dolibarr appartiennent à l'utilisateur du serveur Web.