1. 16 6月, 2013 1 次提交
  2. 15 6月, 2013 1 次提交
  3. 14 6月, 2013 1 次提交
  4. 20 5月, 2013 1 次提交
  5. 19 5月, 2013 2 次提交
  6. 16 5月, 2013 1 次提交
  7. 10 5月, 2013 1 次提交
  8. 17 3月, 2013 1 次提交
  9. 16 3月, 2013 1 次提交
  10. 06 1月, 2013 1 次提交
  11. 05 11月, 2012 1 次提交
  12. 15 9月, 2012 1 次提交
  13. 31 7月, 2012 1 次提交
    • D
      Make ActiveSupport::Inflector locale aware and multilingual · 7db0b073
      David Celis 提交于
      The Inflector is currently not very supportive of internationalized
      websites. If a user wants to singularize and/or pluralize words based on
      any locale other than English, they must define each case in locale
      files. Rather than create large locale files with mappings between
      singular and plural words, why not allow the Inflector to accept a
      locale?
      
      This patch makes ActiveSupport::Inflector locale aware and uses `:en`` unless
      otherwise specified. Users will still be provided a list of English (:en)
      inflections, but they may additionally define inflection rules for other
      locales. Each list is kept separately and permanently. There is no reason to
      limit users to one list of inflections:
      
          ActiveSupport::Inflector.inflections(:es) do |inflect|
            inflect.plural(/$/, 's')
            inflect.plural(/([^aeéiou])$/i, '\1es')
            inflect.plural(/([aeiou]s)$/i, '\1')
            inflect.plural(/z$/i, 'ces')
            inflect.plural(/á([sn])$/i, 'a\1es')
            inflect.plural(/é([sn])$/i, 'e\1es')
            inflect.plural(/í([sn])$/i, 'i\1es')
            inflect.plural(/ó([sn])$/i, 'o\1es')
            inflect.plural(/ú([sn])$/i, 'u\1es')
      
            inflect.singular(/s$/, '')
            inflect.singular(/es$/, '')
      
            inflect.irregular('el', 'los')
          end
      
          'ley'.pluralize(:es)   # => "leyes"
          'ley'.pluralize(:en)   # => "leys"
          'avión'.pluralize(:es) # => "aviones"
          'avión'.pluralize(:en) # => "avións"
      
      A multilingual Inflector should be of use to anybody that is tasked with
      internationalizing their Rails application.
      Signed-off-by: NDavid Celis <david@davidcelis.com>
      7db0b073
  14. 30 6月, 2012 1 次提交
  15. 24 5月, 2012 1 次提交
    • V
      Revert "Remove blank trailing comments" · 1ad0b378
      Vijay Dev 提交于
      This reverts commit fa6d921e.
      
      Reason: Not a fan of such massive changes. We usually close such changes
      if made to Rails master as a pull request. Following the same principle
      here and reverting.
      
      [ci skip]
      1ad0b378
  16. 20 5月, 2012 1 次提交
    • H
      Remove blank trailing comments · fa6d921e
      Henrik Hodne 提交于
      For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace
      with the first match, and voilà! Note that the regex matches a little bit too
      much, so you probably want to `git add -i .` and go through every single diff
      to check if it actually should be changed.
      fa6d921e
  17. 19 5月, 2012 4 次提交
  18. 14 5月, 2012 1 次提交
  19. 29 4月, 2012 1 次提交
  20. 08 4月, 2012 1 次提交
    • X
      revises the regexp used in titleize · 4b685aad
      Xavier Noria 提交于
      The regexp used in titleize matches saxon genitive
      and other contractions, only to call capitalize on
      the captured text and have the apostrophe upcased
      which yields the apostrophe itself. It is more
      clear that the regexp matches just what it has to
      match.
      4b685aad
  21. 03 4月, 2012 2 次提交
  22. 27 3月, 2012 1 次提交
  23. 29 2月, 2012 1 次提交
  24. 13 2月, 2012 4 次提交
  25. 04 2月, 2012 1 次提交
  26. 31 1月, 2012 1 次提交
  27. 27 1月, 2012 2 次提交
  28. 25 1月, 2012 1 次提交
  29. 29 12月, 2011 1 次提交
  30. 08 11月, 2011 1 次提交
  31. 07 11月, 2011 1 次提交