Refactor contact translation

#569
This commit is contained in:
Artur Beljajev 2017-08-01 19:20:46 +03:00
parent 8c4062c02a
commit 30a7fd5f26
2 changed files with 24 additions and 27 deletions

View file

@ -9,5 +9,29 @@ en:
models: models:
contact: contact:
attributes: attributes:
code:
blank: "Required parameter missing - code"
too_long_contact_code: "Contact code is too long, max 100 characters"
name:
blank: "Required parameter missing - name"
phone:
blank: "Required parameter missing - phone"
invalid: "Phone nr is invalid"
email:
blank: "Required parameter missing - email"
invalid: "Email is invalid"
ident:
blank: "Required parameter missing - ident"
invalid_EE_identity_format: "Ident not in valid Estonian identity format."
invalid_EE_identity_format_update: "Ident not in valid Estonian identity format. Please create new contact"
invalid_birthday_format: "Ident not in valid birthday format, should be YYYY-MM-DD"
invalid_country_code: "Ident country code is not valid, should be in ISO_3166-1 alpha 2 format"
ident_type:
ident_type_invalid: 'Ident type is invalid'
epp_ident_type_invalid: 'Object status prohibits operation: ident_type of contact %{code} is invalid'
domains:
exist: 'Object association prohibits operation'
statuses:
not_uniq: 'not uniq'
country_code: country_code:
invalid: Country code is not valid, should be in ISO_3166-1 alpha 2 format invalid: Country code is not valid, should be in ISO_3166-1 alpha 2 format

View file

@ -34,33 +34,6 @@ en:
activerecord: activerecord:
errors: errors:
models: models:
contact:
attributes:
code:
blank: "Required parameter missing - code"
too_long_contact_code: "Contact code is too long, max 100 characters"
name:
blank: "Required parameter missing - name"
phone:
blank: "Required parameter missing - phone"
invalid: "Phone nr is invalid"
email:
blank: "Required parameter missing - email"
invalid: "Email is invalid"
ident:
blank: "Required parameter missing - ident"
invalid_EE_identity_format: "Ident not in valid Estonian identity format."
invalid_EE_identity_format_update: "Ident not in valid Estonian identity format. Please create new contact"
invalid_birthday_format: "Ident not in valid birthday format, should be YYYY-MM-DD"
invalid_country_code: "Ident country code is not valid, should be in ISO_3166-1 alpha 2 format"
ident_type:
ident_type_invalid: 'Ident type is invalid'
epp_ident_type_invalid: 'Object status prohibits operation: ident_type of contact %{code} is invalid'
domains:
exist: 'Object association prohibits operation'
statuses:
not_uniq: 'not uniq'
epp_domain: &epp_domain_ar_attributes epp_domain: &epp_domain_ar_attributes
attributes: attributes:
base: base: