Agile Web Development

Build it. Launch it. Love it.

Verbal

== INSTALL:

script/plugin install git://github.com/tomaszmazur/verbal.git

== USAGE:

NUMBERS:

Verbal::Polish::Numbers.to_words(123_456_789)
=> "sto dwadzieścia trzy miliony czterysta pięćdziesiąt sześć tysiecy siedemset osiemdziesiąt dziewięć"

NOTE: It's American English numbering system
http://www.mazes.com/AmericanNumberingSystem.html

Verbal::English::Numbers.to_words(123_456_789)
=> "one hundred twenty-three million four hundred fifty-six thousand seven hundred and eighty-nine"

CURRENCIES:

Verbal::Polish::Currency.to_words(123_456_789_00, 'PLN')
=> "sto dwadzieścia trzy miliony czterysta pięćdziesiąt sześć tysiecy siedemset osiemdziesiąt dziewięć złotych zero groszy"

No Support for Verbal::English::Currency yet... Anybody?

Vitals

Home http://en.trix.pl
Repository git://github.com/tomaszmazur/verbal.git
License Rails' (MIT)
Tags Tag_red cannot install it
Rating (22 votes)
Owner Tomasz Mazur
Created 26 July 2008

Comments

  • Avatar
    Pietje Prik
    29 July 2008

    This is the plugin I've been waiting for!

Add a comment