Added i18n to ladder.jade

This commit is contained in:
Ruben Vereecken 2014-03-12 20:46:25 +01:00
parent aa0778507a
commit c2e81db200
3 changed files with 29 additions and 8 deletions
app
locale
templates
editor/level
play

View file

@ -81,6 +81,7 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr
campaign_player_created: "Player-Created"
campaign_player_created_description: "... in which you battle against the creativity of your fellow <a href=\"/contribute#artisan\">Artisan Wizards</a>."
level_difficulty: "Difficulty: "
play_as: "Play As "
contact:
contact_us: "Contact CodeCombat"
@ -282,6 +283,7 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr
password: "Password"
message: "Message"
code: "Code"
ladder: "Ladder"
about:
who_is_codecombat: "Who is CodeCombat?"
@ -475,3 +477,11 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr
ambassador_title_description: "(Support)"
counselor_title: "Counselor"
counselor_title_description: "(Expert/Teacher)"
ladder:
please_login: "Please log in first before playing a ladder game."
my_matches: "My Matches"
simulate: "Simulate"
simulation_explanation: "By simulating games you can get your game ranked faster!"
simulate_games: "Simulate Games!"
simulate_all: "RESET AND SIMULATE GAMES"

View file

@ -0,0 +1,11 @@
extends /templates/modal/modal_base
include /templates/kinds/versions
block modal-header-content
h3(data-i18n="general.version_history") Version History
block modal-body-content
if dataList
+version-history-body()
block modal-footer-content

View file

@ -10,7 +10,7 @@ block content
if me.get('anonymous')
div#must-log-in
p
strong Please log in first before playing a ladder game.
strong(data-i18n="ladder.please_login") Please log in first before playing a ladder game.
button.btn.btn-primary(data-toggle="coco-modal", data-target="modal/login", data-i18n="login.log_in") Log In
button.btn.btn-primary(data-toggle="coco-modal", data-target="modal/signup", data-i18n="login.sign_up") Create Account
@ -21,7 +21,7 @@ block content
for team in teams
div.column.col-md-4
a(style="background-color: #{team.primaryColor}", data-team=team.id).play-button.btn.btn-danger.btn-block.btn-lg
span Play As
span(data-i18n="play.play_as") Play As
span= team.name
div.column.col-md-2
@ -29,11 +29,11 @@ block content
ul.nav.nav-pills
li.active
a(href="#ladder", data-toggle="tab") Ladder
a(href="#ladder", data-toggle="tab", data-i18n="general.ladder") Ladder
li
a(href="#my-matches", data-toggle="tab") My Matches
a(href="#my-matches", data-toggle="tab", data-i18n="ladder.my_matches") My Matches
li
a(href="#simulate", data-toggle="tab") Simulate
a(href="#simulate", data-toggle="tab", data-i18n="ladder.simulate") Simulate
div.tab-content
.tab-pane.active.well#ladder
@ -45,9 +45,9 @@ block content
if simulationStatus
| #{simulationStatus}
else
| By simulating games you can get your game ranked faster!
span(data-i18n="ladder.simulation_explanation") By simulating games you can get your game ranked faster!
p
button.btn.btn-warning.btn-lg.highlight#simulate-button() Simulate Games!
button(data-i18n="ladder.simulate_games").btn.btn-warning.btn-lg.highlight#simulate-button Simulate Games!
if me.isAdmin()
p
button.btn.btn-danger.btn-lg.highlight#simulate-all-button() RESET AND SIMULATE GAMES
button(data-i18n="ladder.simulate_all").btn.btn-danger.btn-lg.highlight#simulate-all-button RESET AND SIMULATE GAMES