github.com/amberbit/polish_number¶ ↑
polish-number has been renamed to polish_number and moved to¶ ↑
polish-numberTranslates numbers to Polish words
¶ ↑
InstallationTested with Ruby 1.8.7 and 1.9.2.
gem install polish-number
¶ ↑
Usagerequire '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 specsrake test
¶ ↑
TODO-
currently works for numbers 0-999999. Make it work with millions, billions, etc
-
optional noun pluralization
¶ ↑
GitHubgithub.com/wpiekutowski/polish-number
¶ ↑
Creditspolish-number is maintained by Wojciech Piekutowski.