0.0
No commit activity in last 3 years
No release in over 3 years
Number localization extensions to the original (Ruby/Rails) I18n project.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

 Project Readme

G3A::I18n¶ ↑

Summary¶ ↑

This is an extension to the original Ruby/Rails I18n project, that should be found in activesupport’s vendor directory. G3A::I18n gives you the ability to translate Integers and Floats through the well known I18n API, eg.:

require 'g3a/i18n'
I18n.locale = :hu
I18n.t 1234
# => "ezerkétszázharmincnégy"
I18n.t(1234.0 + 1/6.0)
# => "ezerkétszázharmincnégy és egy hatod"

And it provides ordinals too…

I18n.t 1234, :format => :ordinal
# => "ezerkétszázharmincnegyedik"

Prerequisites¶ ↑

You should install svenfuchs’ i18n gem prior to this one.

gem install svenfuchs-i18n --source http://gems.github.com/

Installation¶ ↑

gem install gbence-g3a_i18n --source http://gems.github.com/

Licensing and contribution¶ ↑

G3A::I18n is released under the MIT-LICENSE license, see the included license file for further information. Suggestions, feedback, pull requests, patches, bug reports are mostly welcome to my github account or to gbence@algernon.hu.

Some part of this project is forked of László Németh’s localization project (hunspell.sourceforge.net/Soros.html), as well as the cloned gemspec and other misc files from Bálint Érdi’s (github.com/balinterdi) various projects.