diff --git a/app/locale/en.coffee b/app/locale/en.coffee index 8931cf74e..e3da5e2d5 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -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" \ No newline at end of file diff --git a/app/templates/editor/level/versions.jade b/app/templates/editor/level/versions.jade new file mode 100644 index 000000000..b40c7b6f0 --- /dev/null +++ b/app/templates/editor/level/versions.jade @@ -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 \ No newline at end of file diff --git a/app/templates/play/ladder.jade b/app/templates/play/ladder.jade index b7de9c539..234804ed6 100644 --- a/app/templates/play/ladder.jade +++ b/app/templates/play/ladder.jade @@ -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 \ No newline at end of file + button(data-i18n="ladder.simulate_all").btn.btn-danger.btn-lg.highlight#simulate-all-button RESET AND SIMULATE GAMES \ No newline at end of file