Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

fix pluralization for numbers formatted like '1.00'

#3821

This patch fixes pluralization for numbers formatted like '1.00' (e.g. when formatted using number_with_precision()).

pluralize('1.00', 'hour') should return "1.00 hour" instead of "1.00 hours".

Reported by Gabriel Mansour · January 30th, 2010 @ 06:15 PM

State: committed
Milestone: 2.3.6
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: Low

Activity

  1. Matt Duncan
    Matt Duncan

    +1 looks good to me.

    This patch also means that the following is now true:

    pluralize(1.00, "hour") == pluralize("1.00", "hour")
    

    January 30th, 2010 @ 07:20 PM

  2. Gabriel Mansour
    Gabriel Mansour
    • Tag changed from actionpack, patch, pluralize, tested, text_helper to actionpack, actionview, patch, pluralize, tested, text_helper

    January 30th, 2010 @ 08:37 PM

  3. Gabriel Mansour
    Gabriel Mansour
    • Assigned user set to Jeremy Kemper

    February 7th, 2010 @ 09:19 PM

  4. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to committed
    • Milestone set to 2.3.6

    February 7th, 2010 @ 09:27 PM