mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Allow yml messages to be configured by not using engine locales, which, due to a Rails bug, always have higher priority than application locales
This commit is contained in:
parent
3209e7d988
commit
9d56aa9603
3 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,6 @@
|
|||
* bug fix
|
||||
* [#15] Allow yml messages to be configured by not using engine locales
|
||||
|
||||
* deprecations
|
||||
* Renamed confirm_in to confirm_within
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ end
|
|||
Rails.configuration.after_initialize do
|
||||
ActiveRecord::Base.extend Devise::ActiveRecord
|
||||
ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Devise::Migrations
|
||||
I18n.load_path.unshift File.expand_path(File.join(File.dirname(__FILE__), 'devise', 'locales', 'en.yml'))
|
||||
end
|
||||
|
||||
require 'devise/warden'
|
||||
|
|
|
@ -4,7 +4,7 @@ en:
|
|||
signed_in: 'Signed in successfully.'
|
||||
signed_out: 'Signed out successfully.'
|
||||
unauthenticated: 'You need to sign in or sign up before continuing.'
|
||||
unconfirmed: 'Your account was not confirmed and your confirmation period has expired.'
|
||||
unconfirmed: 'You have to confirm your account before continuing.'
|
||||
invalid: 'Invalid email or password.'
|
||||
passwords:
|
||||
send_instructions: 'You will receive an email with instructions about how to reset your password in a few minutes.'
|
Loading…
Reference in a new issue