Adds missing i18n to valuator groups notices
This commit is contained in:
@@ -19,7 +19,7 @@ class Admin::ValuatorGroupsController < Admin::BaseController
|
|||||||
def create
|
def create
|
||||||
@group = ValuatorGroup.new(group_params)
|
@group = ValuatorGroup.new(group_params)
|
||||||
if @group.save
|
if @group.save
|
||||||
notice = "User group created successfully"
|
notice = t("user_group.notice.created")
|
||||||
redirect_to [:admin, @group], notice: notice
|
redirect_to [:admin, @group], notice: notice
|
||||||
else
|
else
|
||||||
render :new
|
render :new
|
||||||
@@ -29,7 +29,7 @@ class Admin::ValuatorGroupsController < Admin::BaseController
|
|||||||
def update
|
def update
|
||||||
@group = ValuatorGroup.find(params[:id])
|
@group = ValuatorGroup.find(params[:id])
|
||||||
if @group.update(group_params)
|
if @group.update(group_params)
|
||||||
notice = "User group updated successfully"
|
notice = t("user_group.notice.updated")
|
||||||
redirect_to [:admin, @group], notice: notice
|
redirect_to [:admin, @group], notice: notice
|
||||||
else
|
else
|
||||||
render :edit
|
render :edit
|
||||||
@@ -39,7 +39,7 @@ class Admin::ValuatorGroupsController < Admin::BaseController
|
|||||||
def destroy
|
def destroy
|
||||||
@group = ValuatorGroup.find(params[:id])
|
@group = ValuatorGroup.find(params[:id])
|
||||||
@group.destroy
|
@group.destroy
|
||||||
notice = "User group destroyed successfully"
|
notice = t("user_group.notice.destroyed")
|
||||||
redirect_to admin_valuator_groups_path, notice: notice
|
redirect_to admin_valuator_groups_path, notice: notice
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -3,4 +3,7 @@ en:
|
|||||||
zero: There are 0 groups of valuators
|
zero: There are 0 groups of valuators
|
||||||
one: There is 1 group de valuators
|
one: There is 1 group de valuators
|
||||||
other: There are '%{count}' groups of valuators
|
other: There are '%{count}' groups of valuators
|
||||||
|
notice:
|
||||||
|
created: "User group created successfully"
|
||||||
|
updated: "User group updated successfully"
|
||||||
|
destroyed: "User group destroyed successfully"
|
||||||
|
|||||||
@@ -3,4 +3,7 @@ es:
|
|||||||
zero: Hay 0 grupos de evaluadores
|
zero: Hay 0 grupos de evaluadores
|
||||||
one: Hay 1 grupo de evaluadores
|
one: Hay 1 grupo de evaluadores
|
||||||
other: Hay '%{count}' grupos de evaluadores
|
other: Hay '%{count}' grupos de evaluadores
|
||||||
|
notice:
|
||||||
|
created: "Grupo de usuarios creado correctamente"
|
||||||
|
updated: "Grupo de usuarios actualizado correctamente"
|
||||||
|
destroyed: "Grupo de usuarios eliminado correctamente"
|
||||||
|
|||||||
Reference in New Issue
Block a user