Giter Club home page Giter Club logo

numbers_and_words's People

Contributors

alvesdan avatar antoinebecquet avatar azolotov avatar bklang avatar bsdave avatar cbilgili avatar dblock avatar duyetpt avatar elod avatar fakenine avatar foton avatar highercomve avatar igosuki avatar jaambros avatar jlduran avatar joseramonc avatar kslazarev avatar lpradovera avatar martinsspringis avatar miks avatar mvz avatar neodelf avatar oleander avatar poilon avatar sorich87 avatar viliusluneckas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

numbers_and_words's Issues

Refactoring tests

Remove duplication code. To test new language just add two fixture examples files:
"array/fixture_examples/#{new_language}.yml"
"integer/fixture_examples/#{new_language}.yml"

Support scientific/exponential numbers.

We could support scientific/exponential notation, if every languages roughly uses the integer_with_fractinal_in_words exponential_separator exponent_in_words form. All we need is support ordinals for exponent_in_words. I created a proof-of-concept implementation on the feature/exponential branch (which in turn uses the feature/ordinals branch).

Check working with ruby 1.9.3.

ruby-1.9.3-p0-fast :001 > require 'numbers_and_words'
=> true
ruby-1.9.3-p0-fast :002 > 177.to_words
NoMethodError: undefined method `capacity_count' for [7, 7, 1]:Array

Add @sorich87 contacts to README.

I have already added @sorich87 to repo as He made a huge contribution to the project.
Thank you, @sorich87.

Any questions You could ask here or by email.
This issue is blocking release right now, so please, close that task as fast, as possible.

Add contacts to README.

User 'dblock' must add contacts to README, as he made a good contribution to the project.

Wrong hundreds separator with British

English uses and as the union_separator (when separating integral and fractional part) and also uses that when separating hundreds, e.g.

irb(main):006:0> I18n.with_locale('en') { 0.115.to_words(hundreds_with_union: true) }
=> "zero and one hundred and fifteen thousandths"

irb(main):009:0> I18n.with_locale('en') { 115.to_words(hundreds_with_union: true) }
=> "one hundred and fifteen"

British uses point for the union_separator and that's ok, but it also uses point for separating hundreds, and that is wrong, e.g.:

irb(main):011:0> I18n.with_locale('en-GB') { 0.115.to_words(hundreds_with_union: true) }
=> "zero point one one five"

irb(main):004:0> I18n.with_locale('en-GB') { 115.to_words(hundreds_with_union: true) }
=> "one hundred point fifteen"

I think we need a separate translation for the hundreds_union and union_separator (that happens to be the same word in english), @kslazarev what do you think?

Refactoring strategies

Refactoring strategies. Remove duplication by Families::Cyrillic and Families::Latin sub modules in Strategies and TranslationsHelpers.

Ломает плюрализацию russian

config/locales/ru.yml

ru:
  items:
    one: '%{count} товар'
    few: '%{count} товара'
    many: '%{count} товаров'    

rails c:

> I18n.t :items, :count => 101
 => "101 товаров"

Должно быть:

> I18n.t :items, :count => 101
 => "101 товар"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.