app/controllers/simplificator_infrastructure/errors_controller.rb
# sets the locale and resets afterwards for I18n.t to work in error templates
sets the locale and resets afterwards for I18n.t to work in error templates
sets the locale and resets afterwards for I18n . t to work in error templates
def with_locale
    I18n.with_locale(error_summary.locale) do
      yield
    end
  end
def with_locale I18n . with_locale ( error_summary . locale ) do yield end end
sets the locale and resets afterwards for I18n.t to work in error templates
sets the locale and resets afterwards for I18n . t to work in error templates