Ticket #665 (closed Bug: fixed)

Opened 5 months ago

Last modified 5 months ago

inflector::plural("news") differs from inflector::plural("News")

Reported by: rafaelss Owned by: Shadowhand
Priority: minor Milestone: 2.2
Component: Helpers Version: SVN HEAD
Keywords: helper inflector plural strtolower Cc:

Description

When I use inflector::plural with string in lowercase, it's works fine, but not if string contains letter in uppercase

To solve this, I change method inflector::uncountable putting $str param in lowercase when checking if index of array exists

Attachments

inflector.patch (376 bytes) - added by rafaelss 5 months ago.

Change History

Changed 5 months ago by rafaelss

Changed 5 months ago by Shadowhand

  • owner changed from - No owner - to Shadowhand
  • status changed from new to assigned
  • milestone changed from 2.1.3 to 2.2

Changed 5 months ago by Shadowhand

  • keywords plural strtolower added; bug removed
  • status changed from assigned to closed
  • resolution set to fixed

Fixed in r2923.

Note: See TracTickets for help on using tickets.