Adds i18n for unauthorized messages
This commit is contained in:
@@ -85,6 +85,8 @@ search:
|
|||||||
# ignore_missing:
|
# ignore_missing:
|
||||||
# - 'errors.messages.{accepted,blank,invalid,too_short,too_long}'
|
# - 'errors.messages.{accepted,blank,invalid,too_short,too_long}'
|
||||||
# - '{devise,simple_form}.*'
|
# - '{devise,simple_form}.*'
|
||||||
|
ignore_missing:
|
||||||
|
- 'unauthorized.*'
|
||||||
|
|
||||||
## Consider these keys used:
|
## Consider these keys used:
|
||||||
# ignore_unused:
|
# ignore_unused:
|
||||||
@@ -93,6 +95,8 @@ search:
|
|||||||
# - 'simple_form.{yes,no}'
|
# - 'simple_form.{yes,no}'
|
||||||
# - 'simple_form.{placeholders,hints,labels}.*'
|
# - 'simple_form.{placeholders,hints,labels}.*'
|
||||||
# - 'simple_form.{error_notification,required}.:'
|
# - 'simple_form.{error_notification,required}.:'
|
||||||
|
ignore_unused:
|
||||||
|
- 'unauthorized.*'
|
||||||
|
|
||||||
## Exclude these keys from the `i18n-tasks eq-base' report:
|
## Exclude these keys from the `i18n-tasks eq-base' report:
|
||||||
# ignore_eq_base:
|
# ignore_eq_base:
|
||||||
|
|||||||
@@ -89,3 +89,7 @@ en:
|
|||||||
subject: Someone has commented on your debate
|
subject: Someone has commented on your debate
|
||||||
reply:
|
reply:
|
||||||
subject: Someone has replied to your comment
|
subject: Someone has replied to your comment
|
||||||
|
unauthorized:
|
||||||
|
default: "You are not authorized to access this page."
|
||||||
|
manage:
|
||||||
|
all: "You are not authorized to %{action} %{subject}."
|
||||||
|
|||||||
@@ -89,3 +89,21 @@ es:
|
|||||||
subject: Alguien ha comentado en tu debate
|
subject: Alguien ha comentado en tu debate
|
||||||
reply:
|
reply:
|
||||||
subject: Alguien ha respondido a tu comentario
|
subject: Alguien ha respondido a tu comentario
|
||||||
|
unauthorized:
|
||||||
|
default: "No tienes permiso para acceder a esta página."
|
||||||
|
index:
|
||||||
|
all: "No tienes permiso para listar %{subject}"
|
||||||
|
show:
|
||||||
|
all: "No tienes permiso para ver %{subject}"
|
||||||
|
edit:
|
||||||
|
all: "No tienes permiso para editar %{subject}"
|
||||||
|
update:
|
||||||
|
all: "No tienes permiso para modificar %{subject}"
|
||||||
|
create:
|
||||||
|
all: "No tienes permiso para crear %{subject}"
|
||||||
|
delete:
|
||||||
|
all: "No tienes permiso para borrar %{subject}"
|
||||||
|
manage:
|
||||||
|
all: "No tienes permiso para realizar la acción '%{action}' sobre %{subject}."
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user