Menu

#1644 Trouble with locale fr_FR

I18n
closed-fixed
5
2004-10-04
2004-09-13
Anonymous
No

Hi,
Last week I try to install bayesspam plugin on a french
configuration...
But the plugin always send to me a result of 0%... after
a moment I found
that the problem come from a problem with php who
sometime reply 0.5 and
sometime 0,5 for a float... I don't know if the problem
come from plugin
or php (Google said other people have same kind of
problem with php)...
So in i18n.php I add
setlocale(LC_NUMERIC,"C");
Just after the line setlocale(LC_ALL, $longlocale);
And bayesspam plugin work good...

I think all plugin who use float (not a lot) have the
same problem so
perhaps it's a good idea to add this little change in
future release...

E.Duputel

config:
php-4.2.2-17.2
squirrelmail-1.4.2-1
bayesspam plugin 3.2

Discussion

  • Tomas Kuliavas

    Tomas Kuliavas - 2004-10-04

    Logged In: YES
    user_id=225877

    From 1.5.1cvs (functions/i18n.php v.1.193) and 1.4.4cvs
    (functions/i18n.php v.1.129.2.26) squirrelmail uses C number
    rules. Maybe bayes plugin can be fixed by using fractions
    (1/10, 2/10).

     
  • Tomas Kuliavas

    Tomas Kuliavas - 2004-10-04
    • status: open --> closed-fixed
     

Log in to post a comment.