mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Use translation file for errors, display reserved domain error through epp
This commit is contained in:
parent
e3c60d51fe
commit
d96b1b5deb
6 changed files with 40 additions and 2 deletions
|
@ -30,7 +30,7 @@ class Domain < ActiveRecord::Base
|
|||
end
|
||||
|
||||
if !DomainNameValidator.validate_reservation(x)
|
||||
res << {name: x, avail: 0, reason: 'Domain name is reserved or restricted'}
|
||||
res << {name: x, avail: 0, reason: I18n.t('errors.messages.epp_domain_reserved')}
|
||||
next
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue