modolabs / Kurogo-Mobile-Web

Kurogo is a PHP framework for delivering high quality, data driven customizable content to a wide range of mobile devices. Its strengths lie in the customizable system that allows you to adapt content from a variety of sources and easily present that to mobile devices from feature phones, to early generation smart phones, to modern devices and tablets
http://kurogo.org
GNU Lesser General Public License v2.1
198 stars 99 forks source link

Added Pluralizer class for use throughout the framework. #62

Closed eebs closed 12 years ago

eebs commented 12 years ago

Pluralizer::pluralize($count, $singular, $plural = null)

Returns the plural form of $singular if $count is not -1 or 1. Uses the given plural form if $plural is not null.

eebs commented 12 years ago

Forgot to mention, this code was taken in part from the CakePHP framework which is licensed under the MIT license.