[svn-commits] oej: branch 1.4 r295906 - /branches/1.4/main/say.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Nov 23 03:28:31 CST 2010


Author: oej
Date: Tue Nov 23 03:28:14 2010
New Revision: 295906

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=295906
Log:
Fix support of saynumber(1,n) in the Swedish language

(closes issue #18353)
Reported by: oej

Review: https://reviewboard.asterisk.org/r/1031/


Modified:
    branches/1.4/main/say.c

Modified: branches/1.4/main/say.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/say.c?view=diff&rev=295906&r1=295905&r2=295906
==============================================================================
--- branches/1.4/main/say.c (original)
+++ branches/1.4/main/say.c Tue Nov 23 03:28:14 2010
@@ -2121,15 +2121,15 @@
 		} else if (playh) {
 			snprintf(fn, sizeof(fn), "digits/hundred");
 			playh = 0;
+		} else if (num == 1 && cn == -1) {	/* En eller ett? */
+			snprintf(fn, sizeof(fn), "digits/1N");
+			num = 0;
 		} else if (num < 20) {
 			snprintf(fn, sizeof(fn), "digits/%d", num);
 			num = 0;
 		} else if (num < 100) {
 			snprintf(fn, sizeof(fn), "digits/%d", (num /10) * 10);
 			num -= ((num / 10) * 10);
-		} else if (num == 1 && cn == -1) {	/* En eller ett? */
-		 	snprintf(fn, sizeof(fn), "digits/1N");
-			num = 0;
 		} else {
 			if (num < 1000){
 				snprintf(fn, sizeof(fn), "digits/%d", (num/100));




More information about the svn-commits mailing list