I was thinking about something like
storage_units: # [Bytes, KB, MB, GB, TB]
one: ["1 Byte", "1 KB", "1 MB", "1 GB", "1 TB"]
other: ["{{count}} Bytes", "{{count}} KB", "{{count}} MB", "{{count}} GB", "{{count}} TB"]
But in this case, we'll need to patch SimpleBackend so it can make recursive interpolations for Enumerable. What do you think, is it an overkill?
On Mon, Dec 8, 2008 at 12:01 AM, Sven Fuchs
<sven...@artweb-design.de> wrote:
Hey guys,
I guess with the tools available in Rails I18n we'd probably need to
use a format string like
number:
human_size:
format: "{{number}} {{unit}}"
... and then lookup the units as well (iirc that's already done?)
--
Yaroslav Markin