[asterisk-commits] russell: branch 1.4 r46857 - /branches/1.4/main/say.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Nov 1 16:01:49 MST 2006


Author: russell
Date: Wed Nov  1 17:01:48 2006
New Revision: 46857

URL: http://svn.digium.com/view/asterisk?rev=46857&view=rev
Log:
fix saying one hundred and two hundred in hebrew (issue #7810, eldadran)

Modified:
    branches/1.4/main/say.c

Modified: branches/1.4/main/say.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/say.c?rev=46857&r1=46856&r2=46857&view=diff
==============================================================================
--- branches/1.4/main/say.c (original)
+++ branches/1.4/main/say.c Wed Nov  1 17:01:48 2006
@@ -1144,7 +1144,8 @@
 /* 	Extra sounds needed:
  	1F: feminin 'one'
 	ve: 'and'
-	2hundred: 2 hundred
+	1hundred: 1 hundred
+	2hundred: 2 hundreds
 	2thousands: 2 thousand 
 	thousands: plural of 'thousand'
 	3sF 'Smichut forms (female)
@@ -1235,11 +1236,13 @@
 			num = num % 10;
 			if (num>0) state=2;
 		} else if (num < 200) {
-			snprintf(fn, sizeof(fn), "digits/hundred");
+			snprintf(fn, sizeof(fn), "digits/1hundred");
 			num = num - 100;
+			state=2;
 		} else if (num < 300) {
-			snprintf(fn, sizeof(fn), "digits/hundred");
-			num = num - 100;
+			snprintf(fn, sizeof(fn), "digits/2hundred");
+			num = num - 200;
+			state=2;
 		} else if (num < 1000) {
 			snprintf(fn, sizeof(fn), "digits/%d", (num/100));
 			state=1;



More information about the asterisk-commits mailing list