Add translations for active record models
Fix i18n spec Add i18n activerecord files Fix activerecord first name and last name labels
This commit is contained in:
committed by
Juanjo Bazán
parent
d96f1697dc
commit
85e3e4439c
@@ -87,8 +87,8 @@ search:
|
|||||||
# - '{devise,simple_form}.*'
|
# - '{devise,simple_form}.*'
|
||||||
|
|
||||||
## Consider these keys used:
|
## Consider these keys used:
|
||||||
# ignore_unused:
|
ignore_unused:
|
||||||
# - 'activerecord.attributes.*'
|
- 'activerecord.*'
|
||||||
# - '{devise,kaminari,will_paginate}.*'
|
# - '{devise,kaminari,will_paginate}.*'
|
||||||
# - 'simple_form.{yes,no}'
|
# - 'simple_form.{yes,no}'
|
||||||
# - 'simple_form.{placeholders,hints,labels}.*'
|
# - 'simple_form.{placeholders,hints,labels}.*'
|
||||||
|
|||||||
22
config/locales/activerecord.en.yml
Normal file
22
config/locales/activerecord.en.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
en:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
comment: Comment
|
||||||
|
debate: Debate
|
||||||
|
user: User
|
||||||
|
vote: Vote
|
||||||
|
attributes:
|
||||||
|
comment:
|
||||||
|
body: Comment
|
||||||
|
user: User
|
||||||
|
debate:
|
||||||
|
author: Author
|
||||||
|
description: Opinion
|
||||||
|
terms_of_service: Terms of service
|
||||||
|
title: Title
|
||||||
|
user:
|
||||||
|
email: Email
|
||||||
|
first_name: "First name"
|
||||||
|
last_name: "Last name"
|
||||||
|
nickname: Nickname
|
||||||
|
password: Password
|
||||||
22
config/locales/activerecord.es.yml
Normal file
22
config/locales/activerecord.es.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
es:
|
||||||
|
activerecord:
|
||||||
|
models:
|
||||||
|
comment: Comentario
|
||||||
|
debate: Debate
|
||||||
|
user: Usuario
|
||||||
|
vote: Voto
|
||||||
|
attributes:
|
||||||
|
comment:
|
||||||
|
body: Comentario
|
||||||
|
user: Usuario
|
||||||
|
debate:
|
||||||
|
author: Autor
|
||||||
|
description: Opinión
|
||||||
|
terms_of_service: Términos de servicio
|
||||||
|
title: Título
|
||||||
|
user:
|
||||||
|
email: Correo electrónico
|
||||||
|
first_name: Nombre
|
||||||
|
last_name: Apellidos
|
||||||
|
nickname: Pseudónimo
|
||||||
|
password: Contraseña
|
||||||
Reference in New Issue
Block a user