Re: New class proposal: Numbers_Spell
| From: | Xavier Noguer | Date: | Fri, 15 Nov 2002 20:02:59 +0000 |
| Subject: | Re: New class proposal: Numbers_Spell | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-10850@lists.php.net to get a copy of this message | ||
El Vie 15 Nov 2002 14:09, Tal Peer escribió:
> Arnaud Limbourg wrote:
> > Looks all right to me.
> >
> > +1.
>
> +1 too, just a little typo: when i try with num=0, it gives 'ero'
> instaed of zero.
> And regarding the name, maybe Numbers_Words?
+1. And a patch for the 'ero' error:
--- /home/xnoguer/Numbers_Spell-0.1/Spell/lang.en_US.php Fri Nov 15
12:03:06 2002
+++ Spell/lang.en_US.php.new Fri Nov 15 16:58:44 2002
@@ -216,7 +216,7 @@
return $ret;
}
} elseif ($num == 0 || $num == '') {
- return $this->_digits[0];
+ return $this->_sep . $this->_digits[0];
}
$h = $t = $d = 0;