This commit is contained in:
Jeff Lenk 2011-03-31 11:30:57 -05:00
parent 78e16b86e6
commit 426a4e76df
1 changed files with 3 additions and 6 deletions

View File

@ -417,20 +417,17 @@ static switch_status_t en_say_money(switch_say_file_handle_t *sh, char *tosay, s
switch_say_file(sh, "currency/dollars"); switch_say_file(sh, "currency/dollars");
} }
/* Say "and" */
switch_say_file(sh, "currency/and");
/* Say cents */ /* Say cents */
if (cents) { if (cents) {
/* Say "and" */
switch_say_file(sh, "currency/and");
en_say_general_count(sh, cents, say_args); en_say_general_count(sh, cents, say_args);
if (atoi(cents) == 1) { if (atoi(cents) == 1) {
switch_say_file(sh, "currency/cent"); switch_say_file(sh, "currency/cent");
} else { } else {
switch_say_file(sh, "currency/cents"); switch_say_file(sh, "currency/cents");
} }
} else {
switch_say_file(sh, "digits/0");
switch_say_file(sh, "currency/cents");
} }
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;