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.

Add i18n for number_to_human_size() storage units

#1448

Patch adds translation for storage units (previously STORAGE_UNITS constant) used in number_to_human_size helper.

After a small discussion with Sven we decided that there is no need of implementing "default" translation in code ( I18n.translate(:'number.human.storage_units', ...) rescue %w(Bytes KB ...) ) as it will result in having duplicate translations in code and en.yml.

Reported by Yaroslav Markin · November 23rd, 2008 @ 02:38 PM

State: committed
Milestone: 2.x
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to committed
    • Tag changed from actionpack, helpers, i18n to actionpack, helpers, i18n, patch

    (from [d36158794b19ee8ea49d74061218b37d4301f0f9]) Add i18n for number_to_human_size() helper storage units. Translation key is number.human.storage_units.

    [#1448 Add i18n for number_to_human_size() storage units state:committed]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    November 23rd, 2008 @ 09:12 PM

  2. Repository
    Repository

    (from [68d2130a6b0e2bcc5e9a0d265bcae75fdcd18bb3]) Add i18n for number_to_human_size() helper storage units. Translation key is number.human.storage_units.

    [#1448 Add i18n for number_to_human_size() storage units state:committed]

    Signed-off-by: Jeremy Kemper jeremy@bitsweat.net http://github.com/rails/rails/co...

    November 23rd, 2008 @ 09:12 PM

  3. bingbing