From 8132248ba3ef9828ba9c2e00395aea7b7ceea174 Mon Sep 17 00:00:00 2001 From: Merwan Ouddane Date: Thu, 13 Apr 2017 16:53:42 +0200 Subject: [PATCH] [FS-10155] French digits are not spelled right --- src/mod/say/mod_say_fr/mod_say_fr.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mod/say/mod_say_fr/mod_say_fr.c b/src/mod/say/mod_say_fr/mod_say_fr.c index f4bbbd5680..ba34647c85 100644 --- a/src/mod/say/mod_say_fr/mod_say_fr.c +++ b/src/mod/say/mod_say_fr/mod_say_fr.c @@ -111,16 +111,24 @@ static switch_status_t play_group(switch_say_method_t method, switch_say_gender_ say_file("digits/%d%d.wav", b, c); } } else { - say_file("digits/%d0.wav", b); + if (b == 7 || b == 9) { + say_file("digits/%d0.wav", b-1); + } else { + say_file("digits/%d0.wav", b); + } } } - if (c || (ftdNumber == 1 && (a || b || c))) { + if (c || ((ftdNumber == 1 && (a || b || c)) && (a && (b || c)))) { /*switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "a=%d b=[%d] c=%d\n",a, b,c);*/ int fVal = c; if (ftdNumber == 1) fVal = itd; + if (b == 7 || b == 9) { + fVal += 10; + } + if (method == SSM_COUNTED) { say_file("digits/h-%d.wav", fVal); } else {