locale fix
This commit is contained in:
@@ -45,9 +45,9 @@ App.ApplicationRoute = Ember.Route.extend
|
|||||||
message = null
|
message = null
|
||||||
if error.status is 404
|
if error.status is 404
|
||||||
if klass.routeName is 'table'
|
if klass.routeName is 'table'
|
||||||
message = t('errors.404.model.message', model: t("models.#{klass.routeName}"), id: transition.state.params.table.table_id)
|
message = t('errors.status404.model.message', model: t("models.#{klass.routeName}"), id: transition.state.params.table.table_id)
|
||||||
else
|
else
|
||||||
message = t('errors.404.general.message')
|
message = t('errors.status404.general.message')
|
||||||
@transitionTo('index').then (route)->
|
@transitionTo('index').then (route)->
|
||||||
route.get('controller.controllers.application').set 'notice', message
|
route.get('controller.controllers.application').set 'notice', message
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ en:
|
|||||||
title: There is a problem with the application
|
title: There is a problem with the application
|
||||||
body: Please try to restart
|
body: Please try to restart
|
||||||
errors:
|
errors:
|
||||||
404:
|
status404:
|
||||||
model:
|
model:
|
||||||
message: Cannot find %{model} with id %{id}
|
message: Cannot find %{model} with id %{id}
|
||||||
general:
|
general:
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ nl:
|
|||||||
body: Herstart de applicatie om het op te lossen
|
body: Herstart de applicatie om het op te lossen
|
||||||
|
|
||||||
errors:
|
errors:
|
||||||
404:
|
status404:
|
||||||
model:
|
model:
|
||||||
message: %{model} met id %{id} kan niet worden gevonden
|
message: %{model} met id %{id} kan niet worden gevonden
|
||||||
general:
|
general:
|
||||||
|
|||||||
Reference in New Issue
Block a user