diff options
author | Jason Parker <jparker@digium.com> | 2009-06-30 18:48:35 +0000 |
---|---|---|
committer | Jason Parker <jparker@digium.com> | 2009-06-30 18:48:35 +0000 |
commit | 51d7dc5d83e6d293997eb729b2eec29faf32626a (patch) | |
tree | 85f4d3b176b8c0ef28ab045444f8d177a86c09de /main | |
parent | 34d014395579bfd6ede5a1e27fed11171734bf84 (diff) |
Merged revisions 204474 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r204474 | qwell | 2009-06-30 13:47:06 -0500 (Tue, 30 Jun 2009) | 1 line
Fix ast_say_counted_noun to correctly handle Polish. Fix a comment typo in passing.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@204475 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/say.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/say.c b/main/say.c index b438ac2b7..f5b2bdff1 100644 --- a/main/say.c +++ b/main/say.c @@ -7850,7 +7850,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"; @@ -7866,7 +7866,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); |