From 3bd5be4e22f39e7f298b03f255577be0474e6db3 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Fri, 20 Mar 2015 11:08:51 +0200 Subject: [PATCH 1/2] Citizen message fix --- app/models/epp/domain.rb | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/epp/domain.rb b/app/models/epp/domain.rb index f5f0cfbef..fb7633ef4 100644 --- a/app/models/epp/domain.rb +++ b/app/models/epp/domain.rb @@ -207,7 +207,7 @@ class Epp::Domain < Domain if action != 'rem' if x['type'] == 'admin' && c.bic? - add_epp_error('2306', 'contact', x.text, [:domain_contacts, :admin_contact_can_be_only_citizen]) + add_epp_error('2306', 'contact', x.text, [:domain_contacts, :admin_contact_can_be_only_private_person]) next end end diff --git a/config/locales/en.yml b/config/locales/en.yml index d4ed0cefc..069cc352e 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -68,7 +68,7 @@ en: domain_contacts: invalid: 'Contacts are invalid' not_found: 'Contact was not found' - admin_contact_can_be_only_citizen: 'Admin contact can be only citizen' + admin_contact_can_be_only_private_person: 'Admin contact can be only private person' admin_contacts: out_of_range: 'Admin contacts count must be between %{min}-%{max}' less_than_or_equal_to: 'Admin contacts count must be less than or equal to %{count}' From d8828750d901baf2b416b543aa182e61d8681999 Mon Sep 17 00:00:00 2001 From: Martin Lensment Date: Fri, 20 Mar 2015 11:12:50 +0200 Subject: [PATCH 2/2] Test fix --- spec/epp/domain_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/epp/domain_spec.rb b/spec/epp/domain_spec.rb index 92de4757c..596e6ccc7 100644 --- a/spec/epp/domain_spec.rb +++ b/spec/epp/domain_spec.rb @@ -691,7 +691,7 @@ describe 'EPP Domain', epp: true do }) response = epp_plain_request(xml, :xml) - response[:msg].should == 'Admin contact can be only citizen' + response[:msg].should == 'Admin contact can be only private person' response[:result_code].should == '2306' end end