[Asterisk-Dev] RE: [Asterisk-cvs] asterisk say.c,1.15,1.16
Florian Overkamp
florian at obsimref.com
Fri Feb 20 10:52:12 MST 2004
Hm,
Time to add the dutch support too ? Cees, anything new on that front ?
Florian
> -----Original Message-----
> Modified Files:
> say.c
> Log Message:
> Add support for Norwegian numbers (bug #1067)
>
>
> Index: say.c
> ===================================================================
> RCS file: /usr/cvsroot/asterisk/say.c,v
> retrieving revision 1.15
> retrieving revision 1.16
> diff -u -d -r1.15 -r1.16
> --- say.c 13 Jan 2004 00:47:43 -0000 1.15
> +++ say.c 20 Feb 2004 17:43:46 -0000 1.16
> @@ -94,8 +94,11 @@
> if (0) {
> /* XXX Only works for english XXX */
> } else {
> - /* Use english numbers */
> - language = "en";
> + /* Use english numbers if a given language is
> supported. */
> + /* As a special case, Norwegian has the same
> numerical grammar
> + as English */
> + if (strcasecmp(language, "no"))
> + language = "en";
> while(!res && (num || playh)) {
> if (playh) {
> snprintf(fn, sizeof(fn),
> "digits/hundred");
More information about the asterisk-dev
mailing list