mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-27 21:31:16 -04:00
Moved internationalisation of level load error message into template file
This commit is contained in:
parent
11c5f7419a
commit
373a618cff
2 changed files with 3 additions and 2 deletions
app
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue