0.0
No commit activity in last 3 years
No release in over 3 years
polish-number has been renamed to polish_number and moved to https://github.com/amberbit/polish_number
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme
polish-number has been renamed to polish_number and moved to github.com/amberbit/polish_number¶ ↑

polish-number¶ ↑

Translates numbers to Polish words

Installation¶ ↑

Tested with Ruby 1.8.7 and 1.9.2.

gem install polish-number

Usage¶ ↑

require 'polish_number'

PolishNumber.translate(1234) #=> tysiąc dwieście trzydzieści cztery
PolishNumber.translate(34, :currency => :PLN) #=> trzydzieści cztery złote
PolishNumber.translate(12, :currency => :PLN) #=> dwanaście złotych

Running specs¶ ↑

rake test

TODO¶ ↑

  • currently works for numbers 0-999999. Make it work with millions, billions, etc

  • optional noun pluralization

GitHub¶ ↑

github.com/wpiekutowski/polish-number

Credits¶ ↑

polish-number is maintained by Wojciech Piekutowski.