Ladder i18n refactoring

This commit is contained in:
Ruben Vereecken 2014-03-18 10:18:38 +01:00
parent 8c7c49fdbb
commit b476e6b333
4 changed files with 10 additions and 3 deletions

View file

@ -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 <a href=\"/contribute#artisan\">Artisan Wizards</a>."
level_difficulty: "Difficulty: "
play_as: "Play As "
spectate: "Spectate"
contact:
contact_us: "Contact CodeCombat"

View file

@ -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 <a href=\"/contribute#artisan\">Ambachtelijke Tovenaars</a>."
level_difficulty: "Moeilijkheidsgraad: "
play_as: "Vecht als "
spectate: "Schouw toe"
contact:
contact_us: "Contact opnemen met CodeCombat"

View file

@ -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

View file

@ -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