diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-01 23:01:48 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-01 23:01:48 +0000 |
commit | c49a21a45ba0e5fba90569158516f92f92b2b924 (patch) | |
tree | b6ca660d4e6df65ef53fd6032e74067c3f7e2a89 /main/say.c | |
parent | 28b0541fdd599fe36fdd44aa8c0f7b8a737cdc1f (diff) |
fix saying one hundred and two hundred in hebrew (issue #7810, eldadran)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46857 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/say.c')
-rw-r--r-- | main/say.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/main/say.c b/main/say.c index 623a3425d..d51cda986 100644 --- a/main/say.c +++ b/main/say.c @@ -1144,7 +1144,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) @@ -1235,11 +1236,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; |