application_controller.rbにロケールをセットするメソッドを追加する
config/locale配下にen.yml, ja.ymlなどの言語ファイルが必要です。
session[:locale]の設定は、それようのコントローラを作成しました。
class ApplicationController < ActionController::Base #helper :all # include all helpers, all the time protect_from_forgery # See ActionController::RequestForgeryProtection for details # Scrub sensitive parameters from your log # filter_parameter_logging :password # 言語をセットする before_filter :set_language private def set_language # セッションになければ、デフォルトロケールを設定する I18n.locale = session[:locale] ? session[:locale] : I18n.default_locale end end