Added i18n to play modal

This commit is contained in:
Ruben Vereecken 2014-03-12 21:23:25 +01:00
parent ca271fedd6
commit f4637251be
3 changed files with 33 additions and 22 deletions
app

View file

@ -1,5 +1,4 @@
module.exports =
nativeDescription: "English", englishDescription: "English", translation:
module.exports = nativeDescription: "English", englishDescription: "English", translation:
common:
loading: "Loading..."
saving: "Saving..."
@ -286,11 +285,14 @@ module.exports =
message: "Message"
code: "Code"
ladder: "Ladder"
opponent: "Opponent"
when: "When"
win: "Win"
loss: "Loss"
tie: "Tie"
easy: "Easy"
medium: "Medium"
hard: "Hard"
about:
who_is_codecombat: "Who is CodeCombat?"
@ -508,4 +510,13 @@ module.exports =
rank_being_ranked: "Game Being Ranked"
code_being_simulated: "Your new code is being simulated by other players for ranking. This will refresh as new matches come in."
no_ranked_matches_pre: "No ranked matches for the "
no_ranked_matches_post: " team! Play against some competitors and then come back here to get your game ranked."
no_ranked_matches_post: " team! Play against some competitors and then come back here to get your game ranked."
choose_opponent: "Choose an Opponent"
tutorial_play: "Play Tutorial"
tutorial_recommended: "Recommended if you've never played before"
tutorial_skip: "Skip Tutorial"
tutorial_not_sure: "Not sure what's going on?"
tutorial_play_first: "Play the tutorial first."
simple_ai: "Simple AI"
warmup: "Warmup"
vs: "VS"

View file

@ -58,11 +58,11 @@ div#columns.row
if team.isRanking
td(colspan=4).alert.alert-info
span(data-i18n="ladder.code_being_simulated")
Your new code is being simulated by other players for ranking.
This will refresh as new matches come in.
| Your new code is being simulated by other players for ranking.
| This will refresh as new matches come in.
else
td(colspan=4).alert.alert-warning
span(data-i18n="ladder.no_ranked_matches_pre") No ranked matches for the
|#{team.name}
| #{team.name}
span(data-i18n="ladder.no_ranked_matches_post") team! Play against some competitors and then come back here to get your game ranked.

View file

@ -1,23 +1,23 @@
extends /templates/modal/modal_base
block modal-header-content
h3 Choose an Opponent
h3(data-i18n="ladder.choose_opponent") Choose an Opponent
block modal-body-content
div#noob-view.secret
a(href="/play/level/#{levelID}-tutorial").btn.btn-success.btn-block.btn-lg
p
strong Play Tutorial
span Recommended if you've never played before
span.btn.btn-primary.btn-block.btn-lg#skip-tutorial-button Skip Tutorial
strong(data-i18n="ladder.tutorial_play") Play Tutorial
span(data-i18n="ladder.tutorial_recommended") Recommended if you've never played before
span.btn.btn-primary.btn-block.btn-lg#skip-tutorial-button(data-i18n="ladder.tutorial_skip") Skip Tutorial
div#normal-view
p.tutorial-suggestion
strong Not sure what's going on?
strong(data-i18n="ladder.tutorial_not_sure") Not sure what's going on?
|
a(href="/play/level/#{levelID}-tutorial") Play the tutorial first.
a(href="/play/level/#{levelID}-tutorial", data-i18n="ladder.tutorial_play_first") Play the tutorial first.
a(href="/play/level/#{levelID}?team=#{teamID}")
div.play-option
@ -28,10 +28,10 @@ block modal-body-content
div.my-name.name-label.only-one
span= myName
div.opponent-name.name-label
span Simple AI
span(data-i18n="ladder.simple_ai") Simple AI
div.difficulty
span Warmup
div.vs VS
span(data-i18n="ladder.warmup") Warmup
div(data-i18n="ladder.vs").vs VS
if challengers.easy
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{challengers.easy.sessionID}")
@ -45,8 +45,8 @@ block modal-body-content
div.opponent-name.name-label
span= challengers.easy.opponentName
div.difficulty
span Easy
div.vs VS
span(data-i18n="general.easy") Easy
div(data-i18n="ladder.vs").vs VS
if challengers.medium
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{challengers.medium.sessionID}")
@ -60,8 +60,8 @@ block modal-body-content
div.opponent-name.name-label
span= challengers.medium.opponentName
div.difficulty
span Medium
div.vs VS
span(data-i18n="general.medium") Medium
div(data-i18n="ladder.vs").vs VS
if challengers.hard
a(href="/play/level/#{levelID}?team=#{teamID}&opponent=#{challengers.hard.sessionID}")
@ -75,7 +75,7 @@ block modal-body-content
div.opponent-name.name-label
span= challengers.hard.opponentName
div.difficulty
span Hard
div.vs VS
span(data-i18n="general.hard") Hard
div(data-i18n="ladder.vs").vs VS
block modal-footer