aboutsummaryrefslogtreecommitdiffstats
path: root/main/say.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-01 23:04:14 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-01 23:04:14 +0000
commitb8c1ab53f62f843f901c7e571a0982f9574d1a7d (patch)
tree2d4f96216e714992a8819338003da766c01ed2c8 /main/say.c
parent5a2b4f655f20858f1f75be7596f11e9e859ea8d7 (diff)
Merged revisions 46857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r46857 | russell | 2006-11-01 18:01:48 -0500 (Wed, 01 Nov 2006) | 2 lines fix saying one hundred and two hundred in hebrew (issue #7810, eldadran) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@46863 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/say.c')
-rw-r--r--main/say.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/main/say.c b/main/say.c
index ff7262a72..a43321a1e 100644
--- a/main/say.c
+++ b/main/say.c
@@ -1153,7 +1153,8 @@ static int ast_say_number_full_fr(struct ast_channel *chan, int num, const char
/* 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)
@@ -1244,11 +1245,13 @@ static int ast_say_number_full_he(struct ast_channel *chan, int num,
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;