forked from Wavyzz/dolibarr
Trad: Traduction du dictionnaires des pays.
This commit is contained in:
@@ -171,6 +171,7 @@ class Form
|
||||
* \brief Retourne la liste d<>roulante des pays actifs, dans la langue de l'utilisateur
|
||||
* \param selected code pays pr<70>-s<>lectionn<6E>
|
||||
* \param htmlname nom de la liste deroulante
|
||||
* \todo trier liste sur noms apr<70>s traduction plutot que avant
|
||||
*/
|
||||
function select_pays($selected='',$htmlname='pays_id')
|
||||
{
|
||||
@@ -179,7 +180,7 @@ class Form
|
||||
|
||||
$sql = "SELECT rowid, libelle, code, active FROM ".MAIN_DB_PREFIX."c_pays";
|
||||
$sql .= " WHERE active = 1";
|
||||
$sql .= " ORDER BY libelle ASC;";
|
||||
$sql .= " ORDER BY code ASC;";
|
||||
|
||||
if ($this->db->query($sql))
|
||||
{
|
||||
@@ -202,8 +203,8 @@ class Form
|
||||
print '<option value="'.$obj->rowid.'">';
|
||||
}
|
||||
# Si traduction existe, on l'utilise, sinon on prend le libell<6C> par d<>faut
|
||||
print ($langs->trans($obj->code)!=$obj->code?$langs->trans($obj->code):($obj->libelle!='-'?$obj->libelle:''));
|
||||
if ($obj->code) { print ' ('.$obj->code.')'; }
|
||||
if ($obj->code) { print '['.$obj->code.'] '; }
|
||||
print ($langs->trans("Country".$obj->code)!="Country".$obj->code?$langs->trans("Country".$obj->code):($obj->libelle!='-'?$obj->libelle:''));
|
||||
print '</option>';
|
||||
$i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user