[Asterisk-cvs] asterisk say.c,1.15,1.15.2.1
markster at lists.digium.com
markster at lists.digium.com
Fri Feb 20 12:56:40 CST 2004
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv24694
Modified Files:
Tag: v1-0_stable
say.c
Log Message:
Fix for Norwegian support
Index: say.c
===================================================================
RCS file: /usr/cvsroot/asterisk/say.c,v
retrieving revision 1.15
retrieving revision 1.15.2.1
diff -u -d -r1.15 -r1.15.2.1
--- say.c 13 Jan 2004 00:47:43 -0000 1.15
+++ say.c 20 Feb 2004 17:44:07 -0000 1.15.2.1
@@ -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