[Agavi-Tickets] [Agavi] #1459: Inflector does not handle uncountable words as part of strings

0 views
Skip to first unread message

Agavi

unread,
Dec 10, 2011, 8:59:51 PM12/10/11
to tic...@lists.agavi.org
#1459: Inflector does not handle uncountable words as part of strings
--------------------+-------------------------------------------------------
Reporter: david | Owner: david
Type: defect | Status: new
Priority: normal | Milestone: 1.0.7
Component: util | Version: 1.0.6
Severity: minor | Keywords:
Has_patch: 0 |
--------------------+-------------------------------------------------------
{{{AgaviInflector::pluralize('money');}}} returns "money", but
{{{AgaviInflector::pluralize('total_money');}}} returns "total_moneys".

Uncountables simply need to be converted to a regular expression and then
handled just like all other words.

--
Ticket URL: <http://trac.agavi.org/ticket/1459>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5

_______________________________________________
Agavi Tickets Mailing List
tic...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/tickets

Agavi

unread,
Dec 10, 2011, 9:16:31 PM12/10/11
to tic...@lists.agavi.org
#1459: Inflector does not handle uncountable words as part of strings
--------------------+-------------------------------------------------------
Reporter: david | Owner: david
Type: defect | Status: closed

Priority: normal | Milestone: 1.0.7
Component: util | Version: 1.0.6
Severity: minor | Resolution: fixed
Keywords: | Has_patch: 0
--------------------+-------------------------------------------------------
Changes (by david):

* status: new => closed
* resolution: => fixed


Comment:

(In [4885]) Update singular and plural rules in AgaviInflector and fix an
error where it does not handle uncountable words as part of strings. Also
adds a boatload of tests. Closes #1460 and #1459

--
Ticket URL: <http://trac.agavi.org/ticket/1459#comment:1>

Reply all
Reply to author
Forward
0 new messages