Browse Source

capitalize records types, refactor i18n

pull/1/head
Nicolae Claudius 13 years ago
parent
commit
424f0bd003
  1. 2
      app/controllers/application_controller.rb
  2. 13
      config/locales/en.yml

2
app/controllers/application_controller.rb

@ -9,7 +9,7 @@ class ApplicationController < ActionController::Base
end
rescue_from ActiveScaffold::ActionNotAllowed do |exception|
flash.now[:error] = I18n.t("action_not_allowed")
flash.now[:error] = I18n.t("errors.action_not_allowed")
render :template => 'errors/access_denied', :layout => 'errors'
end

13
config/locales/en.yml

@ -2,4 +2,15 @@
# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
en:
action_not_allowed: "Action not allowed"
errors:
action_not_allowed: "Action not allowed"
activerecord:
models:
ns: NS
cname: CNAME
mx: MX
soa: SOA
txt: TXT
# attributes:
# user:
# login: "Handle"

Loading…
Cancel
Save