Français 5.1.6a
Posted by renaud
|
May 26, 2006 02:05PM |
Admin Registered: 25 years ago Posts: 4,495 |
This is the french file I am using on the French Forum.
Please fix it if anything is wrong.
Please fix it if anything is wrong.
Brian - Cowboy Ninja Coder - Personal Blog - Twitter
|
Re: Français 5.1.6a May 27, 2006 09:32AM |
Registered: 20 years ago Posts: 130 |
Bonjour,
Pour la mise en place d'un "Phorum" j'ai été ammené à modifier la traduction française disponible (5.1.6a).
Je l'ai rendu disponible sur mon site internet.
Je n'ai pas (encore ?) eu le moyen de la comparer avec la version 5.1.12.
La traduction est disponible ici :
[www.petitpanda.info]
(il y a également la traduction de 2 "mod")
Pour la mise en place d'un "Phorum" j'ai été ammené à modifier la traduction française disponible (5.1.6a).
Je l'ai rendu disponible sur mon site internet.
Je n'ai pas (encore ?) eu le moyen de la comparer avec la version 5.1.12.
La traduction est disponible ici :
[www.petitpanda.info]
(il y a également la traduction de 2 "mod")
|
Re: Français 5.1.6a June 04, 2006 06:19AM |
Registered: 20 years ago Posts: 29 |
|
Re: Français 5.1.6a July 01, 2006 03:55PM |
Registered: 19 years ago Posts: 11 |
|
Re: Français 5.1.6a July 03, 2006 05:00AM |
Registered: 20 years ago Posts: 16 |
|
register and MSIE July 23, 2006 10:28AM |
Registered: 19 years ago Posts: 11 |
Hi,
(with the 'martha' template)
MSIE 6 does not display correctly the 'register' form because the French version of the 'Username' was "Nom d'utilisateur", which was too long, causing a line wrap leading to confusion about which input zone is associated with a given field.
I solved the problem by replacing the translation.
The corresponding line in ./include/lang/french.php is now:
'Username' => "Compte"
Ci-joint: fichier des messages (nombreuses modifications, parfois lourdes, jouer de diff avant de l'employer. Commentaires bienvenus)
Thx
Edited 1 time(s). Last edit at 07/23/2006 04:55PM by natmaka.
(with the 'martha' template)
MSIE 6 does not display correctly the 'register' form because the French version of the 'Username' was "Nom d'utilisateur", which was too long, causing a line wrap leading to confusion about which input zone is associated with a given field.
I solved the problem by replacing the translation.
The corresponding line in ./include/lang/french.php is now:
'Username' => "Compte"
Ci-joint: fichier des messages (nombreuses modifications, parfois lourdes, jouer de diff avant de l'employer. Commentaires bienvenus)
Thx
Edited 1 time(s). Last edit at 07/23/2006 04:55PM by natmaka.
|
Re: Français 5.1.6a October 10, 2006 05:24AM |
Registered: 19 years ago Posts: 81 |
I had problems with Phorum and dates it displays allways in english under PHP 4+.
After testing found the problem is about 'locale' as it is defined in french.php:
$PHORUM['locale'] = "fr_FR";
Try:
setlocale(LC_TIME, "fr_FR");
echo strftime("%a %e %B %Y %H:%M:%S", $t)."<br>";
outputs date in english: Tue October 2006 10:34:18
but
setlocale(LC_TIME, "fr-FR"); //according to [www.rfc-editor.org]
echo strftime("%a %e %B %Y %H:%M:%S", $t)."<br>";
outputs date in french: mar. octobre 2006 10:34:18
Is it not something wrong with $PHORUM['locale'] = "fr_FR";? should not it be $PHORUM['locale'] = "fr-FR";?
After testing found the problem is about 'locale' as it is defined in french.php:
$PHORUM['locale'] = "fr_FR";
Try:
setlocale(LC_TIME, "fr_FR");
echo strftime("%a %e %B %Y %H:%M:%S", $t)."<br>";
outputs date in english: Tue October 2006 10:34:18
but
setlocale(LC_TIME, "fr-FR"); //according to [www.rfc-editor.org]
echo strftime("%a %e %B %Y %H:%M:%S", $t)."<br>";
outputs date in french: mar. octobre 2006 10:34:18
Is it not something wrong with $PHORUM['locale'] = "fr_FR";? should not it be $PHORUM['locale'] = "fr-FR";?
|
Re: Français 5.1.6a October 10, 2006 05:41AM |
Registered: 20 years ago Posts: 130 |
|
Re: Français 5.1.6a October 22, 2006 10:30AM |
Registered: 19 years ago Posts: 81 |
Le fichier original french.php marche très bien sauf qu'après avoir corrigé quelques fautes d'orthographe ou bizarreries, le fichier corrigé affiche les dates en anglais!
Le responsable est $PHORUM['locale'] = "fr_FR" de même //[www.w3.org] mène à une page obsolète où on apprend que les désignations correctes sont fre|fra|fr|French|français comme on le vérifie avec ce petit programme:
dont la sortie est:
locale=fr_FR // the locale of french.php
1161524963
Sun October 2006 15:49:23 //wrong
locale=fr_FR.UTF-8 //suggéré dans le message précédent
1161524963
Sun October 2006 15:49:23 //wrong
locale=fr-FR
1161524963
dim. octobre 2006 15:49:23
locale=fre
1161524963
dim. octobre 2006 15:49:23
locale=fra
1161524963
dim. octobre 2006 15:49:23
locale=fr
1161524963
dim. octobre 2006 15:49:23
locale=French
1161524963
dim. octobre 2006 15:49:23
locale=français
1161524963
dim. octobre 2006 15:49:23
Mes questions:
1) par quel miracle ça fonctionne-t-il bien avec le fichier original?
2) avec la correction idoine, il reste un problème: on a pas l'habitude de dates sous la forme dim., lun. Comment obtenir le bon format dim, lun comme avec le french.php original.
Le responsable est $PHORUM['locale'] = "fr_FR" de même //[www.w3.org] mène à une page obsolète où on apprend que les désignations correctes sont fre|fra|fr|French|français comme on le vérifie avec ce petit programme:
Quote$format = "%a %e %B %Y %H:%M:%S"; $frs = array_merge(array("fr_FR","fr_FR.UTF-8", "fr-FR"), explode("|", "fre|fra|fr|French|français")); $now = strtotime('now'); foreach ($frs as $value) { setlocale(LC_TIME, $value); $s = strftime( $format, $now); echo "<br>locale=$value<br>$now<br>$s<br>"; }
dont la sortie est:
locale=fr_FR // the locale of french.php
1161524963
Sun October 2006 15:49:23 //wrong
locale=fr_FR.UTF-8 //suggéré dans le message précédent
1161524963
Sun October 2006 15:49:23 //wrong
locale=fr-FR
1161524963
dim. octobre 2006 15:49:23
locale=fre
1161524963
dim. octobre 2006 15:49:23
locale=fra
1161524963
dim. octobre 2006 15:49:23
locale=fr
1161524963
dim. octobre 2006 15:49:23
locale=French
1161524963
dim. octobre 2006 15:49:23
locale=français
1161524963
dim. octobre 2006 15:49:23
Mes questions:
1) par quel miracle ça fonctionne-t-il bien avec le fichier original?
2) avec la correction idoine, il reste un problème: on a pas l'habitude de dates sous la forme dim., lun. Comment obtenir le bon format dim, lun comme avec le french.php original.
|
Re: Français 5.1.6a October 22, 2006 10:40AM |
Registered: 20 years ago Posts: 130 |
Sorry, only registered users may post in this forum.

