From 62aa64271a9e091c690b335f1093899a39150c08 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 22 Mar 2006 23:56:19 +0000 Subject: [PATCH] Pas de choix de langues sur export (rien n'est traduit) --- htdocs/exports/export.php | 2 +- htdocs/html.form.class.php | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php index db0b2910b7c..5c8969be26e 100644 --- a/htdocs/exports/export.php +++ b/htdocs/exports/export.php @@ -492,7 +492,7 @@ if ($step == 4 && $datatoexport) // Affiche liste des documents // NB: La fonction show_documents rescanne les modules qd genallowed=1 - $htmlform->show_documents('export','',$conf->export->dir_ouput.'/'.$user->id,$_SERVER["PHP_SELF"].'?step=4&datatoexport='.$datatoexport,$liste,1,'csv'); + $htmlform->show_documents('export','',$conf->export->dir_ouput.'/'.$user->id,$_SERVER["PHP_SELF"].'?step=4&datatoexport='.$datatoexport,$liste,1,'csv','',1); print ' '; print ''; diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index c48129b2d0f..ae7c0bf6062 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -2059,10 +2059,12 @@ class Form * \param genallowed Génération autorisée (1/0 ou array des formats) * \param delallowed Suppression autorisée (1/0) * \param modelselected Modele à présélectionner par défaut + * \param modelliste Tableau des modeles possibles + * \param forcenomultilang N'affiche pas option langue meme si MAIN_MULTILANGS défini * \remarks Le fichier de facture détaillée est de la forme * REFFACTURE-XXXXXX-detail.pdf ou XXXXX est une forme diverse */ - function show_documents($modulepart,$filename,$filedir,$urlsource,$genallowed,$delallowed=0,$modelselected='',$modelliste=array()) + function show_documents($modulepart,$filename,$filedir,$urlsource,$genallowed,$delallowed=0,$modelselected='',$modelliste=array(),$forcenomultilang=0) { // filedir = conf->...dir_ouput."/".get_exdir(id) @@ -2157,10 +2159,14 @@ class Form $texte=$langs->trans('Generate'); print ''; print ''; - if($conf->global->MAIN_MULTILANGS) + if($conf->global->MAIN_MULTILANGS && ! $forcenomultilang) { $this->select_lang($langs->getDefaultLang()); } + else + { + print ' '; + } print ''; print ''; print '';