#6130: Inflector - base, tax, fax, wax
---------------------------+------------------------------------------------
    Reporter:  petteyg359  |          Type:  Bug      
      Status:  new         |      Priority:  Low      
   Milestone:  1.2.x.x     |     Component:  Core Libs
     Version:  1.2 Final   |      Severity:  Minor    
    Keywords:              |   Php_version:  n/a      
Cake_version:              |  
---------------------------+------------------------------------------------
 With plural "bases", Inflector gives singular "basis". This is correct,
 however, "base" would also be correct. Not sure how this could be fixed.
 Submitted an edit to the cookbook with a sample app/config/inflections.php
 to fix this. Edit was rejected and suggested a bug report. Here it is
 :)[[BR]][[BR]]

 With plural "taxes", Inflector gives singular "taxis". This is incorrect.
 Should give "tax".[[BR]]
 With plural "faxes", Inflector gives singular "faxis". This is incorrect.
 Should give "fax".[[BR]]
 With plural "waxes", Inflector gives singular "waxis". This is incorrect.
 Should give "wax".[[BR]][[BR]]

 Offending line in /cake/libs/inflector.php (line 285 in revision
 8004):[[BR]]
 {{{'/(cris|ax|test)es$/i' => '\1is',}}}[[BR]]
 Possible fix, add before:[[BR]]
 {{{'/([ftw]ax)es' => '\1',}}}[[BR]]

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6130>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to