Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 11, 2015
  1. @carlosantoniodasilva

    :scissors:

    carlosantoniodasilva authored
Commits on Jan 10, 2015
  1. @carlosantoniodasilva

    Tidy up

    carlosantoniodasilva authored
  2. @carlosantoniodasilva

    Merge pull request #289 from lmarlow/slice_non_existent_keys

    carlosantoniodasilva authored
    Teach Hash#slice to only include keys that exist in original
  3. @carlosantoniodasilva

    Merge pull request #295 from davidcornu/nil-dup

    carlosantoniodasilva authored
    Don't try to duplicate nil options
Commits on Jan 7, 2015
  1. @davidcornu
Commits on Dec 19, 2014
  1. @carlosantoniodasilva

    Release 0.7.0

    carlosantoniodasilva authored
  2. @carlosantoniodasilva

    Bring back core ext string interpolate file referenced by Rails 3.2

    carlosantoniodasilva authored
    We can't just drop the file because Rails 3.2 requires it directly, so
    we keep it around even though it is just empty, since we won't support
    Ruby 1.8 anymore.
    
    This should allow Rails 3.2 users under Ruby 1.9 to update to the newest
    I18n without problem.
Commits on Nov 12, 2014
  1. @julik

    Perform deep merges when doing Backend::Chain#translate

    julik authored
    Currently when requesting a namespace it would give you a union
    of the top level keys, but would let nested keys override each other.
    
    As an effect of this, you would be losing translations coming from
    a lower-level backend if at least one subkey is "overridden" in a backend
    that has higher priority.
    
    This fix ensures that you instead get a "deep union" of all the translation
    keys and the merges do indeed get performed correctly not only at the top
    level of the namespace but all the way down.
Commits on Sep 26, 2014
  1. @lmarlow

    Teach Hash#slice to only include keys that exist in original

    lmarlow authored
    Previously this would blow up if you asked for a key that wasn't in the
    original hash. This is consistent with Rails' version of Hash#slice.
Commits on Aug 25, 2014
  1. @Bartuz

    Update lookup.rb

    Bartuz authored
    Just a small typo fix
Commits on Aug 18, 2014
  1. @carlosantoniodasilva
Commits on Aug 17, 2014
  1. @carlosantoniodasilva

    Ensure the cached locale list is cleared after reloading

    carlosantoniodasilva authored
    So that the list gets properly updated when setting a new
    locale/default_locale.
    
    Related to #275.
  2. @carlosantoniodasilva
Commits on Jul 19, 2014
  1. @carlosantoniodasilva
  2. @carlosantoniodasilva
Commits on Jul 16, 2014
  1. @carlosantoniodasilva

    Remove the need for TokyoCabinet and Rufus dependency to run the tests

    carlosantoniodasilva authored
    The key-value store requires a very specific API from the store, and we
    can use a simple hash object to match that contract on our tests, so
    there's no need for yet another dependency on top of it.
  2. @carlosantoniodasilva
  3. @carlosantoniodasilva
  4. @carlosantoniodasilva
  5. @carlosantoniodasilva

    Remove string interpolation backport for Ruby 1.8

    carlosantoniodasilva authored
    Now that 1.8 has been officially dropped, we can remove this extension.
  6. @carlosantoniodasilva
Commits on Jul 13, 2014
  1. @carlosantoniodasilva
Commits on Jul 10, 2014
  1. @carlosantoniodasilva
Commits on Jul 9, 2014
  1. @carlosantoniodasilva

    Merge pull request #244 from semaperepelitsa/rescue_nil

    carlosantoniodasilva authored
    locale= and default_locale now raise when setting a truthy value that
    cannot be converted with #to_sym.
    
    Conflicts:
    	test/i18n_test.rb
  2. @carlosantoniodasilva

    Bump to 0.6.11

    carlosantoniodasilva authored
Commits on May 29, 2014
  1. @arthurnn

    Fix error when including Fallbacks on non-Simple backend

    arthurnn authored
    Commit 12aa0f0 introduced a bug, where
    if `Fallbacks` module is included in a class that doesnt define
    `translations` the code would fail. This is a pretty common
    scenario, for instance when the backend is a `Chain`. Also this was
    pretty common case to fail in rails, as its include Fallbacks in the
    I18n.backend, like this:
    ```
    I18n.backend.class.send(:include, I18n::Backend::Fallbacks)
    ```
    
    This stops using the `translations` method in the fallbacks, and instead
    ignores `I18n::InvalidLocale` errors.
    
    [fixes #238]
    [fixes #258]
    [fixes #259]
Commits on May 28, 2014
  1. @carlosantoniodasilva

    Bump to 0.6.10

    carlosantoniodasilva authored
Commits on May 7, 2014
  1. @carlosantoniodasilva

    Nodoc and document new internal method [ci skip]

    carlosantoniodasilva authored
    Also improve docs on enforce available locale related methods.
  2. @carlosantoniodasilva

    Merge pull request #249 from arthurnn/available_locales_perf

    carlosantoniodasilva authored
    Improve performance on enforce_available_locales!
Commits on May 5, 2014
  1. @carlosantoniodasilva

    Merge pull request #245 from ssimeonov/ss_suppress_warnings

    carlosantoniodasilva authored
    Ensure original verbosity in case of exceptions
    
    Conflicts:
    	lib/i18n/core_ext/kernel/suppress_warnings.rb
  2. @carlosantoniodasilva

    Merge pull request #241 from buddhamagnet/more-concise-suppress-warnings

    carlosantoniodasilva authored
    Make code in suppress_warnings.rb more concise
  3. @carlosantoniodasilva
Commits on Apr 7, 2014
  1. @arthurnn

    Improve performance on enforce_available_locales!

    arthurnn authored
    Cache the available_locales in a local Set, so we can lookup, and check for inclusions faster.
    [fixes #230]
Commits on Feb 22, 2014
  1. @ssimeonov
Commits on Feb 15, 2014
  1. @semaperepelitsa

    I18n.locale= and default_locale= now fail given junk values.

    semaperepelitsa authored
    Only strings and nil allowed.
Something went wrong with that request. Please try again.