svenfuchs/rails-i18n — pull request #191 by nashbridges (2012-03-02 21:50:20+00:00)
Title: Ukrainian transliteration, force to not load all locales

This pull request tries to cover #188.

In the first place I tried to narrow locales list with the help of `I18n.available_locales`.

Unfortunately (but correctly), `I18n` railtie is initialized at the very end of an app initialization. So if we'd wanted to rely on `I18n.available_locales`, we also had to use `config.after_initialize` in our gem, then force `I18n` to evaluate all locales, thus populating `I18n.available_locales`, then add another portion of our locales, and then reload `I18n` backend again.

Such a solution is not perfect not only because of double reloading, but also because any engine can add a bunch of its locales during initialization, and we'll end up loading the same quantity.

So I propose to use single configuration rule for that (`config.rails_i18n.load_only`). It's simple and independent.

Also I included transliteration rule for Ukrainian.