[Asterisk-cvs] asterisk say.c,1.15,1.16
markster at lists.digium.com
markster at lists.digium.com
Fri Feb 20 12:56:19 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv24678
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 svn-commits
mailing list