Moved internationalisation of level load error message into template file

This commit is contained in:
Tay Yang Shun 2014-02-26 06:14:29 +08:00
parent 11c5f7419a
commit 373a618cff
2 changed files with 3 additions and 2 deletions
app

View file

@ -4,7 +4,9 @@ block content
if notFound
div(class="alert alert-warning")
h2 #{notFoundMessage}
h2
span(data-i18n="play_level.level_load_error") Level could not be loaded:
| #{notFound}
h1(data-i18n="play.choose_your_level") Choose Your Level
p

View file

@ -9,7 +9,6 @@ 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'