diff --git a/app/locale/en.coffee b/app/locale/en.coffee index 37b209b8f..800efe0de 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -82,6 +82,7 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr campaign_player_created_description: "... in which you battle against the creativity of your fellow Artisan Wizards." level_difficulty: "Difficulty: " play_as: "Play As " + spectate: "Spectate" contact: contact_us: "Contact CodeCombat" diff --git a/app/locale/nl.coffee b/app/locale/nl.coffee index aef80d8f9..066a5826b 100644 --- a/app/locale/nl.coffee +++ b/app/locale/nl.coffee @@ -81,6 +81,8 @@ module.exports = nativeDescription: "Nederlands", englishDescription: "Dutch", t campaign_player_created: "Door-spelers-gemaakt" campaign_player_created_description: "... waarin je ten strijde trekt tegen de creativiteit van andere Ambachtelijke Tovenaars." level_difficulty: "Moeilijkheidsgraad: " + play_as: "Vecht als " + spectate: "Schouw toe" contact: contact_us: "Contact opnemen met CodeCombat" diff --git a/app/templates/play/ladder.jade b/app/templates/play/ladder.jade index 234804ed6..57952f888 100644 --- a/app/templates/play/ladder.jade +++ b/app/templates/play/ladder.jade @@ -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(data-i18n="play.play_as") Play As + span(data-i18n="ladder.play_as") Play As span= team.name div.column.col-md-2 diff --git a/app/templates/play/ladder/my_matches_tab.jade b/app/templates/play/ladder/my_matches_tab.jade index b9cf4d459..86d192e12 100644 --- a/app/templates/play/ladder/my_matches_tab.jade +++ b/app/templates/play/ladder/my_matches_tab.jade @@ -50,8 +50,12 @@ div#columns.row td.name-cell= match.opponentName || "Anonymous" td.time-cell= match.when td.battle-cell - - var text = match.state === 'win' ? 'Watch your victory' : 'Defeat the ' + team.otherTeam - a(href="/play/level/#{levelID}?team=#{team.id}&opponent=#{match.sessionID}")= text + a(href="/play/level/#{levelID}?team=#{team.id}&opponent=#{match.sessionID}") + if (match.state === 'win') + span(data-i18n="ladder.watch_victory") Watch your victory + else + span(data-i18n="ladder.defeat_the") Defeat the + | #{team.otherTeam} if !team.matches.length tr