Use active model translations for labels

The same way we did for Active Record, but this time we do it for models
not inheriting fom Active Record.
This commit is contained in:
Javi Martín
2019-10-04 18:14:15 +02:00
parent 6fa67b5e53
commit 9ddbd01f91
12 changed files with 34 additions and 33 deletions

View File

@@ -19,6 +19,19 @@ en:
confirmation_code: "Confirmation code"
email:
recipient: "Email"
verification/letter:
email: "Email"
password: "Password"
verification_code: "Code you received in letter"
verification/management/document:
document_type: "Document type:"
document_number: "Document number"
verification/residence:
date_of_birth: "Date of birth"
document_type: "Document type"
postal_code: "Postcode"
verification/sms:
confirmation_code: "Enter the code you received on your mobile"
officing/residence:
document_type: "Document type"
document_number: "Document number (including letters)"

View File

@@ -32,8 +32,6 @@ en:
index:
title: Management
info: Here you can manage users through all actions listed in the left menu.
document_number: Document number
document_type_label: Document type
document_verifications:
already_verified: This user account is already verified.
has_no_account_html: In order to create an account, go to %{link} and click in <b>"Register"</b> in the upper-left part of the screen.

View File

@@ -143,10 +143,7 @@ en:
titles:
help: "What is %{org}? - Citizen participation"
verify:
code: Code you received in letter
email: Email
info: "To verify your account introduce your access data:"
info_code: "Now introduce the code you received in letter:"
password: Password
submit: Verify my account
title: Verify your account

View File

@@ -47,7 +47,6 @@ en:
new:
accept_terms_text: I accept %{terms_url} of the Census
accept_terms_text_title: I accept the terms and conditions of access of the Census
date_of_birth: Date of birth
document_number: Document number
document_number_help_title: Help
document_number_help_text_html: "<strong>DNI</strong>: 12345678A<br> <strong>Passport</strong>: AAA000001<br> <strong>Residence card</strong>: X1234567P"
@@ -55,12 +54,10 @@ en:
passport: Passport
residence_card: Residence card
spanish_id: DNI
document_type_label: Document type
error_not_allowed_age: You don't have the required age to participate
error_not_allowed_postal_code: In order to be verified, you must be registered.
error_verifying_census: The Census was unable to verify your information. Please confirm that your census details are correct by calling to City Council or visit one Citizen Support Office.
form_errors: prevented the verification of your residence
postal_code: Postcode
postal_code_note: To verify your account you must be registered
terms: the terms and conditions of access
title: Verify residence
@@ -70,7 +67,6 @@ en:
flash:
success: Enter the confirmation code sent to you by text message
edit:
confirmation_code: Enter the code you received on your mobile
resend_sms_link: Click here to send it again
resend_sms_text: Didn't get a text with your confirmation code?
submit_button: Send