]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix ast_say_counted_noun to correctly handle Polish. Fix a comment typo in passing.
authorJason Parker <jparker@digium.com>
Tue, 30 Jun 2009 18:47:06 +0000 (18:47 +0000)
committerJason Parker <jparker@digium.com>
Tue, 30 Jun 2009 18:47:06 +0000 (18:47 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@204474 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/say.c

index 3e121a3d4c40246ffc24c7cea446b700be69da0e..8e4715d79c9ab796d22ccc94b6b0b177dbaf4c5e 100644 (file)
@@ -7295,7 +7295,7 @@ static const char *counted_noun_ending_slavic(int num)
        if (num == 1) {                 /* singular */
            return "";
        }
-       if (num > 0 && num < 5) {       /* 2--5 get genative singular */
+       if (num > 0 && num < 5) {       /* 2--4 get genative singular */
            return "x1";
        } else {                        /* 5--19 get genative plural */
            return "x2";
@@ -7311,7 +7311,7 @@ int ast_say_counted_noun(struct ast_channel *chan, int num, const char noun[])
                ending = counted_noun_ending_slavic(num);
        } else if(!strcasecmp(chan->language, "ua")) {          /* Ukrainian */
                ending = counted_noun_ending_slavic(num);
-       } else if(!strcasecmp(chan->language, "ua")) {          /* Polish */
+       } else if(!strcasecmp(chan->language, "pl")) {          /* Polish */
                ending = counted_noun_ending_slavic(num);
        } else {                                                /* English and default */
                ending = counted_noun_ending_en(num);