[Asterisk-cvs] asterisk/apps app_voicemail.c,1.217,1.218

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Jun 23 13:43:46 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv21777/apps

Modified Files:
	app_voicemail.c 
Log Message:
support Swedish grammar for voicemail message counts (bug #4227)


Index: app_voicemail.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_voicemail.c,v
retrieving revision 1.217
retrieving revision 1.218
diff -u -d -r1.217 -r1.218
--- app_voicemail.c	6 Jun 2005 22:39:32 -0000	1.217
+++ app_voicemail.c	23 Jun 2005 17:44:20 -0000	1.218
@@ -3229,6 +3229,10 @@
 #endif
 	if (the_zone)
 		res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, the_zone->msg_format, the_zone->timezone);
+       else if(!strcasecmp(chan->language,"se"))       /* SWEDISH syntax */
+               res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' dB 'digits/at' k 'and' M", NULL);
+       else if(!strcasecmp(chan->language,"no"))       /* NORWEGIAN syntax */
+               res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' Q 'digits/at' HM", NULL);
 	else if(!strcasecmp(chan->language,"de"))	/* GERMAN syntax */
 		res = ast_say_date_with_format(chan, t, AST_DIGIT_ANY, chan->language, "'vm-received' Q 'digits/at' HM", NULL);
 	else if (!strcasecmp(chan->language,"nl"))	/* DUTCH syntax */
@@ -3347,7 +3351,12 @@
 	else if (vms->curmsg == vms->lastmsg)
 		res = wait_file2(chan, vms, "vm-last");		/* "last" */
 	if (!res) {
-		res = wait_file2(chan, vms, "vm-message");	/* "message" */
+               if (!strcasecmp(chan->language, "se")) {             /* SWEDISH syntax */
+                       res = wait_file2(chan, vms, "vm-meddelandet");  /* "message" */
+               }
+               else {
+                       res = wait_file2(chan, vms, "vm-message");      /* "message" */
+               }
 		if (vms->curmsg && (vms->curmsg != vms->lastmsg)) {
 			if (!res)
 				res = ast_say_number(chan, vms->curmsg + 1, AST_DIGIT_ANY, chan->language, (char *) NULL);




More information about the svn-commits mailing list