From: Michael Jerris Date: Tue, 27 May 2008 00:36:09 +0000 (+0000) Subject: Corrected cardinal and ordinal number reading in German (MODAPP-97) X-Git-Tag: v1.0.0~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8f8420aae022ba49f8e25c4e41cc1023a8ef4fd;p=thirdparty%2Ffreeswitch.git Corrected cardinal and ordinal number reading in German (MODAPP-97) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8678 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/say/mod_say_de/mod_say_de.c b/src/mod/say/mod_say_de/mod_say_de.c index 8358200bb9..b38d00ae41 100644 --- a/src/mod/say/mod_say_de/mod_say_de.c +++ b/src/mod/say/mod_say_de/mod_say_de.c @@ -39,6 +39,7 @@ * * Anthony Minessale II * Michael B. Murdock + * Daniel Swarbrick * * mod_say_de.c -- Say for German * @@ -101,11 +102,21 @@ static switch_status_t play_group(switch_say_method_t method, int a, int b, int if (b) { if (b > 1) { - say_file("digits/%d0.wav", b); + say_file("digits/%d.wav", c); + say_file("currency/and.wav"); + if (method == SSM_COUNTED) { + say_file("digits/h-%d0.wav", b); + } else { + say_file("digits/%d0.wav", b); + } } else { - say_file("digits/%d%d.wav", b, c); - c = 0; + if (method == SSM_COUNTED) { + say_file("digits/h-%d%d.wav", b, c); + } else { + say_file("digits/%d%d.wav", b, c); + } } + c = 0; } if (c) { @@ -395,14 +406,13 @@ static switch_status_t de_say_time(switch_core_session_t *session, char *tosay, } say_num(hour, SSM_PRONOUNCED); + say_file("time/oclock.wav"); if (tm.tm_min > 9) { say_num(tm.tm_min, SSM_PRONOUNCED); } else if (tm.tm_min) { say_file("time/oh.wav"); say_num(tm.tm_min, SSM_PRONOUNCED); - } else { - say_file("time/oclock.wav"); } say_file("time/%s.wav", pm ? "p-m" : "a-m");