Now fix the actual local problem

This commit is contained in:
2014-08-25 17:05:38 +02:00
parent 0a39ade18f
commit 4a1ba301f0
3 changed files with 5 additions and 5 deletions
@@ -45,9 +45,9 @@ App.ApplicationRoute = Ember.Route.extend
message = null
if error.status is 404
if klass.routeName is 'table'
message = t('errors.status404.model.message', model: t("models.#{klass.routeName}"), id: transition.state.params.table.table_id)
message = t('errors.404.model.message', model: t("models.#{klass.routeName}"), id: transition.state.params.table.table_id)
else
message = t('errors.status404.general.message')
message = t('errors.404.general.message')
@transitionTo('index').then (route)->
route.get('controller.controllers.application').set 'notice', message
+1 -1
View File
@@ -95,7 +95,7 @@ en:
title: There is a problem with the application
body: Please try to restart
errors:
status404:
404:
model:
message: Cannot find %{model} with id %{id}
general:
+2 -2
View File
@@ -94,8 +94,8 @@ nl:
body: Herstart de applicatie om het op te lossen
errors:
status404:
404:
model:
message: %{model} met id %{id} kan niet worden gevonden
message: '%{model} met id %{id} kan niet worden gevonden'
general:
message: Data niet beschikbaar