Skip to content

Instantly share code, notes, and snippets.

@squidarth
Created January 3, 2013 17:31
Show Gist options
  • Save squidarth/4445184 to your computer and use it in GitHub Desktop.
Save squidarth/4445184 to your computer and use it in GitHub Desktop.
module I18n
module Registry
protected
def lookup(locale, key, scope = [], options = {})
@log ||= Logger.new(File.join(Rails.root, 'log', 'i18n_registry.log'))
@log.info key
super
end
end
end
I18n::Backend::Simple.send :include, I18n::Registry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment