diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index f092ebe4b73..98678e758ec 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -1192,7 +1192,7 @@ function fieldList($fieldlist,$obj='',$tabname='') if ($fieldlist[$field] == 'pays') { if (in_array('region_id',$fieldlist)) { print ' '; continue; } // For region page, we do not show the country input print ''; - print $form->select_country((! empty($obj->pays_code)?$obj->pays_code:(! empty($obj->pays)?$obj->pays:'')),'pays'); + print $form->select_country((! empty($obj->pays_code)?$obj->pays_code:(! empty($obj->pays)?$obj->pays:'')), 'pays', '', 28); print ''; } elseif ($fieldlist[$field] == 'pays_id') { diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index cab56780ed8..2b5cd5e6dde 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -443,9 +443,10 @@ class Form * @param string $selected Id or Code or Label of preselected country * @param string $htmlname Name of html select object * @param string $htmloption Options html on select object + * @param string $maxlength Max length for labels (0=no limit) * @return string HTML string with select */ - function select_country($selected='',$htmlname='pays_id',$htmloption='') + function select_country($selected='',$htmlname='pays_id',$htmloption='',$maxlength=0) { global $conf,$langs; @@ -495,7 +496,7 @@ class Form { $out.= ''; } diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index d3f05528298..fb02f0a2e0e 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -1298,7 +1298,9 @@ Buy=Buy Sell=Sell InvoiceDateUsed=Invoice date used YourCompanyDoesNotUseVAT=Your company has been defined to not use VAT (Home - Setup - Company/Foundation), so there is no VAT options to setup. -AccountancyCode=Accountancy Code +AccountancyCode=Accountancy Code +AccountancyCodeSell=Sale account. code +AccountancyCodeBuy=Purchase account. code ##### Agenda ##### AgendaSetup=Events and agenda module setup PasswordTogetVCalExport=Key to authorize export link