diff --git a/app/lib/LevelLoader.coffee b/app/lib/LevelLoader.coffee
index aeafb0789..8afc6577a 100644
--- a/app/lib/LevelLoader.coffee
+++ b/app/lib/LevelLoader.coffee
@@ -93,9 +93,6 @@ module.exports = class LevelLoader extends CocoClass
@supermodel.populateModel @level
onSupermodelError: ->
- # msg = $.i18n.t('play_level.level_load_error',
- # defaultValue: "Level could not be loaded.")
- # $('body').append('
' + msg + '
')
onSupermodelLoadedOne: (e) ->
@update()
diff --git a/app/templates/play.jade b/app/templates/play.jade
index 89dd37049..c8e4570d6 100644
--- a/app/templates/play.jade
+++ b/app/templates/play.jade
@@ -4,7 +4,7 @@ block content
if notFound
div(class="alert alert-warning")
- h2 Oops, the level "#{notFound}" was not found!
+ h2 #{notFoundMessage}
h1(data-i18n="play.choose_your_level") Choose Your Level
p
diff --git a/app/views/play/level_view.coffee b/app/views/play/level_view.coffee
index bbce6c637..874bdb93d 100644
--- a/app/views/play/level_view.coffee
+++ b/app/views/play/level_view.coffee
@@ -98,8 +98,6 @@ module.exports = class PlayLevelView extends View
onLevelLoadError: (e) =>
application.router.navigate "/play?not_found=#{@levelID}", {trigger: true}
- # msg = $.i18n.t('play_level.level_load_error', defaultValue: "Level could not be loaded.")
- # @$el.html('Whoops we were not able to find ' + @levelID + '!
' + msg + '
Please select a valid level from the levels page.
')
setLevel: (@level, @supermodel) ->
@god?.level = @level.serialize @supermodel
diff --git a/app/views/play_view.coffee b/app/views/play_view.coffee
index 32e6d3bf1..1bb13bbe9 100644
--- a/app/views/play_view.coffee
+++ b/app/views/play_view.coffee
@@ -9,6 +9,7 @@ module.exports = class PlayView extends View
context = super(context)
context.home = true
context.notFound = @getQueryVariable 'not_found'
+ context.notFoundMessage = $.i18n.t('play_level.level_load_error') + context.notFound
tutorials = [
{
name: 'Rescue Mission'