[svn-commits] kmoore: branch 1.8 r330433 - /branches/1.8/main/say.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Aug 1 10:22:15 CDT 2011


Author: kmoore
Date: Mon Aug  1 10:22:10 2011
New Revision: 330433

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=330433
Log:
Incorrect playback for Spanish in some circumstances

When you say the time in spanish and it is 01:00 - 01:59 or 13:00 - 13:59 you
must use female pronunciation "1F". The function "say_date_with_format_es" does
not take this in account.

(closes ASTERISK-15016)
Patch-by: Luis Jimenez

Modified:
    branches/1.8/main/say.c

Modified: branches/1.8/main/say.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/say.c?view=diff&rev=330433&r1=330432&r2=330433
==============================================================================
--- branches/1.8/main/say.c (original)
+++ branches/1.8/main/say.c Mon Aug  1 10:22:10 2011
@@ -4716,6 +4716,8 @@
 				/* 12-Hour */
 				if (tm.tm_hour == 0)
 					ast_copy_string(nextmsg, "digits/12", sizeof(nextmsg));
+				else if (tm.tm_hour == 1 || tm.tm_hour == 13)
+					snprintf(nextmsg,sizeof(nextmsg), "digits/1F");
 				else if (tm.tm_hour > 12)
 					snprintf(nextmsg, sizeof(nextmsg), "digits/%d", tm.tm_hour - 12);
 				else




More information about the svn-commits mailing list