Skip to content
This repository

Dec 12, 2013

  1. Carlos Antonio da Silva

    Fix instance variable not defined warnings due to added deprecations

    Also fix the rescue_format deprecation, it seems it was never being
    triggered because it was checking for the existence of a not yet defined
    variable.

Dec 07, 2013

  1. Romulo A. Ceccon

    Test for issue with Fallbacks and enforce_available_locales

    Created a test-case for an issue where the
    Fallbacks module will generate an
    I18n::InvalidLocale error.
    
    Fallbacks relies on I18n.translation to find out
    whether there's a translation for a fallback
    locale (e.g. :'de' for :'de-DE'). But
    I18n.translation does not distinguish from a
    "user" call and one coming from the Fallbacks
    module, and may raise I18n::InvalidLocale if
    enforce_available_locales is set.
    authored

Dec 03, 2013

  1. Fix an issue with setting I18n.config.enforce_available_locales

    currently setting this config to false will not stick due to
    the memoize overwriting it back to nil. this probaly works ok
    in many circumstances because of falsy nil, but annoyingly it
    does not prevent the deprecation warning that comes along
    with having the setting unconfigured.
    authored
  2. Christopher Dell

    Tweak a few test descriptions

    authored
  3. Christopher Dell

    Fix a naming clash between I18n.enforce_available_locales and I18n.co…

    …nfig.enforce_available_locales
    
    Renamed `I18n.enforce_available_locales` method to `I18n.enforce_available_locales!`
    authored
  4. Christopher Dell

    Add I18n.locale_available? and enforce available locales

    I18n.locale_available? looks for the passed locale in the
    `I18n.available_locales` list.
    
    ---
    
    Enforce available locales
    
    When `I18n.config.enforce_available_locales` is true we'll raise an
    I18n::InvalidLocale exception if the passed locale is available.
    
    The default is set to `nil` which will display a deprecation error.
    
    If set to `false` we'll skip enforcing available locales altogether (old behaviour).
    
    This has been implemented in the following methods :
    
    - I18n.config.default_locale=
    - I18n.config.locale=
    - I18n.translate
    - I18n.localize
    - I18n.transliterate
    authored
  5. Christopher Dell

    The I18n::MissingTranslation exception escapes key names for its html…

    …_message
    
    Also added deprecation message for the :rescue_format option
    authored

Aug 15, 2013

  1. Nathan Broadbent

    Added dot-separated key tests for I18n.exists?

    authored
  2. Jeff Kreeftmeijer

    Add exists? to check if a certain key exists in the translations

    authored ndbroadbent committed

Aug 13, 2013

  1. Andrii Malyshko

    Simplify handling of missing interpolation argument

    authored

Mar 25, 2013

  1. Andrii Malyshko

    Custom handler for MissingInterpolationArgument exception

    authored

Feb 27, 2013

  1. José Valim

    Do not do any utf8 conversion, assume valid data is received

    authored

Dec 22, 2012

  1. Steve Weber

    Preventing transliterator constant from being modified for concurrenc…

    …y concerns
    authored

Dec 21, 2012

  1. Krzysztof Knapik

    Proper catching invalid yml syntax across all ruby versions

    authored
  2. Krzysztof Knapik

    Fix #180 - make exception message more helpful on YAML syntax error

    authored

Dec 19, 2012

  1. Michael Grosser

    do not overwrite response of first backend with later backends when l…

    …ooking up namespaces
    authored

Dec 05, 2012

  1. Krzysztof Knapik

    Fix I18n.transliterate for non utf-8 keys (occurs e.g. in jruby 1.7.0…

    … which have US-ASCII encoded symbols)
    authored

Sep 16, 2012

  1. Henrik Nyh

    Include the key in "missing interpolation argument" errors.

    authored

Jul 07, 2012

  1. Christopher Dell

    Remove 2 particularly contrived specs

    They were both identical, failing under jruby, trying to access instance variables etc..
    authored

Jul 05, 2012

  1. Christopher Dell

    Merge pull request #130 from tomhughes/master

    Allow mutually recursive fallbacks
    authored

Jul 01, 2012

  1. Christopher Dell

    Fix the build bu disabling a 1.8.7 specific test

    authored

Jun 29, 2012

  1. Christopher Dell

    Actually make the empty test file empty (to stump Psych as well as

    Syck). Closes #114
    authored

Jan 28, 2012

  1. Christopher Dell

    Correct pluralization rule for :fr locale

    authored

Dec 18, 2011

  1. Tom Hughes

    Allow mutually recursive mappings

    Where translations are drawn from different sources which may be using
    different codes for the same language it can be useful to have mappings
    where two codes fallback to each other.
    
    This patch allows that by ensuring that the recursion in the computation
    of the mapping terminates instead of running out of stack.
    authored

Nov 07, 2011

  1. Nikos Dimitrakopoulos

    Failing test for npgettext with msgcntxt. Refs #116.

    authored

Oct 15, 2011

  1. Bert Goethals

    Fixing override tests

    - Actually test signature override
    - Dn't influence other tests
    authored
  2. Bert Goethals

    Make it possible for gems to change the behaviour/signature of I18n. …

    …This is useful for other translation engines that do not want to use the key based syntax (tr8n). Also makes it a lot easier to put a cache in front of I18n.
    authored

Aug 12, 2011

  1. Paweł Gościcki

    Correct pluralization rule for :pl locale

    It was incorrectly written; Based both on the knowledge of my mother tongue (Polish) and the pluralization rules specified on the Unicode.org website (http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html)
    authored

Jul 09, 2011

  1. Santiago Pastorino

    translate with default value should check all the fallbacks

    authored

Jun 09, 2011

  1. Krzysztof Knapik

    Fix exeption handling in I18n#transliterate

    authored

Apr 23, 2011

  1. Sven Fuchs

    Switch from I18n::MissingTranslationData (which is an Exception) to I…

    …18n::MissingTranslation (which is a plain Object) for the default case. Create an I18n::MissingTranslationData exception only if it needs to be raised to the user.
    authored
  2. Sven Fuchs

    stop using exceptions in the backend, use throw/catch instead. still …

    …needs further investigation as MissingTranslationData still is a subclass of Exception and the I18n.t still simply raises (as currently defined by the API).
    authored

Mar 24, 2011

  1. Arkadiy Zabazhanov

    Fixed chain backend to not drop options while transfering to backend

    authored knapo committed

Feb 24, 2011

  1. Krzysztof Knapik

    Fix #81. Prevent splitting string on new line in Fallbacks backend

    authored

Feb 13, 2011

  1. Мар'ян Крекотень (Marjan Krekoteń)

    Make sure file names are always flattened

    authored svenfuchs committed
Something went wrong with that request. Please try again.