aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-30 18:47:06 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2009-06-30 18:47:06 +0000
commit4146b918ff13d7af2a5a55146d8fe2130bb01892 (patch)
tree6dad6cf555396c3a48ef603cf8917bc945e25b80 /main
parentd9930ebd09874900e219f535934b41dd21469bbf (diff)
Fix ast_say_counted_noun to correctly handle Polish. Fix a comment typo in passing.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@204474 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r--main/say.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/say.c b/main/say.c
index 3e121a3d4..8e4715d79 100644
--- a/main/say.c
+++ b/main/say.c
@@ -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);