This repository has been archived by the owner. It is now read-only.
Very simple Rails plugin that introduces I18n.with_scope()
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
MIT-LICENSE
README
Rakefile
init.rb

README

I18n-with-scope
===============

This is a very simple plugin that adds a with_scope method to Rails' I18n module.


Example
=======

Instead of

I18n.with_options :scope => [:activerecord, :errors] do |locale|
  locale.t(:invalid)
end

you can use

I18n.with_scope [:activerecord, :errors] do |locale|
  locale.t(:invalid)
end

Copyright (c) 2009 André Wendt, released under the MIT license