Trad: Traduction du dictionnaires des pays.

This commit is contained in:
Laurent Destailleur
2004-09-18 16:44:52 +00:00
parent f00ac2232f
commit 009707746a
4 changed files with 79 additions and 3 deletions

View File

@@ -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++;
}

25
htdocs/langs/en_US/dict.lang Executable file
View File

@@ -0,0 +1,25 @@
# Dolibarr language file - en_US - dict
CountryFR=France
CountryBE=Belgium
CountryIT=Italy
CountryES=Spain
CountryDE=Germany
CountryCH=Suitzerland
CountryGB=Gret Britain
CountryIE=Irland
CountryCN=China
CountryTN=Tunisia
CountryUS=United States
CountryMA=Maroco
CountryDZ=Algeria
CountryCA=Canada
CountryTG=Togo
CountryGA=Gabon
CountryNL=Deutchland
CountryHU=Hongria
CountryRU=Russia
CountrySE=Sweden
CountryCI=C<>te d'Ivoire
CountrySN=Senegal
CountryAR=Argentina
CountryCM=Cameroun

25
htdocs/langs/fr_BE/dict.lang Executable file
View File

@@ -0,0 +1,25 @@
# Dolibarr language file - en_FR - dict
CountryFR=France
CountryBE=Belgique
CountryIT=Italie
CountryES=Espagne
CountryDE=Allemagne
CountryCH=Suisse
CountryGB=Royaume uni
CountryIE=Irlande
CountryCN=Chine
CountryTN=Tunisie
CountryUS=Etats Unis
CountryMA=Maroc
CountryDZ=Alg<6C>rie
CountryCA=Canada
CountryTG=Togo
CountryGA=Gabon
CountryNL=Pays Bas
CountryHU=Hongrie
CountryRU=Russie
CountrySE=Su<53>de
CountryCI=C<>te d'Ivoire
CountrySN=S<>n<EFBFBD>gal
CountryAR=Argentine
CountryCM=Cameroun

25
htdocs/langs/fr_FR/dict.lang Executable file
View File

@@ -0,0 +1,25 @@
# Dolibarr language file - en_FR - dict
CountryFR=France
CountryBE=Belgique
CountryIT=Italie
CountryES=Espagne
CountryDE=Allemagne
CountryCH=Suisse
CountryGB=Royaume uni
CountryIE=Irlande
CountryCN=Chine
CountryTN=Tunisie
CountryUS=Etats Unis
CountryMA=Maroc
CountryDZ=Alg<6C>rie
CountryCA=Canada
CountryTG=Togo
CountryGA=Gabon
CountryNL=Pays Bas
CountryHU=Hongrie
CountryRU=Russie
CountrySE=Su<53>de
CountryCI=C<>te d'Ivoire
CountrySN=S<>n<EFBFBD>gal
CountryAR=Argentine
CountryCM=Cameroun