From: Steve Underwood Date: Sat, 17 May 2014 06:28:58 +0000 (+0800) Subject: FS-6530 Chinese say now say "one" before "ten" for numbers >99 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9a6e70915da102e3ecafe991cc563543b761ad8;p=thirdparty%2Ffreeswitch.git FS-6530 Chinese say now say "one" before "ten" for numbers >99 --- diff --git a/src/mod/say/mod_say_zh/mod_say_zh.c b/src/mod/say/mod_say_zh/mod_say_zh.c index 289ebb7f5b..0d69876b16 100644 --- a/src/mod/say/mod_say_zh/mod_say_zh.c +++ b/src/mod/say/mod_say_zh/mod_say_zh.c @@ -167,7 +167,7 @@ static switch_status_t zh_say_general_count(switch_core_session_t *session, char case 8: /* Hundred thousands or tens column */ if (digits[i] != '0') { - if (digits[i] != '1') + if (digits[i] != '1' || (digits[i] == '1' && digits[i - 1] > '0')) say_file("digits/%c.wav", digits[i]); say_file("digits/10.wav"); } else {