Fixing Authlogic I18n Error Messages
It’s about time for a code post :)
I ran into some issues with ActiveRecord I18n error messages when using Authlogic. Apparently Authlogic looks up the translations during initialization, so if you change locale later on with I18n.locale= (e.g. in a before_filter), any ActiveRecord error messages will still appear in the default locale.
This issue is currently listed in the GitHub project, however I needed a quick unobtrusive fix until it’s corrected in Authlogic. I’m sharing it in case others run into this problem.