This model without database allow us to validate incoming file extension and headers and also does the following during importation process: * Ignore empty rows * Classifiy rows in two groups: created_records, invalid_records
35 lines
1.1 KiB
YAML
35 lines
1.1 KiB
YAML
en:
|
|
activemodel:
|
|
models:
|
|
verification:
|
|
residence: "Residence"
|
|
sms: "SMS"
|
|
local_census_record/import:
|
|
one: Local census record import
|
|
other: Local census records imports
|
|
attributes:
|
|
verification:
|
|
residence:
|
|
document_type: "Document type"
|
|
document_number: "Document number (including letters)"
|
|
date_of_birth: "Date of birth"
|
|
postal_code: "Postcode"
|
|
sms:
|
|
phone: "Telephone"
|
|
confirmation_code: "Confirmation code"
|
|
email:
|
|
recipient: "Email"
|
|
officing/residence:
|
|
document_type: "Document type"
|
|
document_number: "Document number (including letters)"
|
|
year_of_birth: "Year born"
|
|
local_census_record/import:
|
|
file: File
|
|
errors:
|
|
models:
|
|
local_census_records/import:
|
|
attributes:
|
|
file:
|
|
extension: "Given file format is wrong. The allowed file format is: %{valid_extensions}."
|
|
headers: "Given file headers are wrong. The file headers must have the following names: %{required_headers}."
|