Pluralize(0, 'people') error


#1

pluralize(0, ‘people’) = 0 peoples

Just thought I’d let you guys know. I’m new here so I don’t know if
this is in the right section, but ya.


#2

That’s because ‘people’ is already plural. From the api:

pluralize(count, singular, plural = nil)

Try this:
pluralize(0, ‘person’)

Aaron


#3

Well, people can be singular or plural. It can be the plural of person
or it
can describe a single group. The most famous example of this is in
Martin
Luther King’s famous speech:
“…But I want you to know tonight, that we, as a people, will get to
the
Promised Land.”

Rails gets it right in either case. Clever rails.

-Nathan

P.S. Also try this:

“people”.singularize


#4

Nathan :

Well, people can be singular or plural. It can be the plural of person
or it can describe a single group. The most famous example of this
is in Martin Luther King’s famous speech:
“…But I want you to know tonight, that we, as a people, will get to the
Promised Land.”

Rails gets it right in either case. Clever rails.

Is Rails the Promised Land ? :slight_smile:

– Jean-François.


À la renverse.


#5

Phlip wrote:

Shouldn’t it be:
Rails are the Promised Lands


#6

Try using pluralize(0, ‘person’). Pluralize expects the singular as
the argument, not the plural.

Niels


#7

Jean-François wrote:

Is Rails the Promised Land ? :slight_smile:

Rails are the Promised Land…

(Now try to write a paper about it with a grammar checker, folks!)


Phlip
http://c2.com/cgi/wiki?ZeekLand <-- NOT a blog!!


#8

0 peoples is actually correct plural for people, as in nation or
ethnicity.
:wink:

RSL