From 9f5c0f03be07342a2e9dd0b9fbeb181b28490400 Mon Sep 17 00:00:00 2001 From: Ruben Vereecken Date: Wed, 12 Mar 2014 20:51:38 +0100 Subject: [PATCH] Added i18n to ladder_tab --- app/locale/en.coffee | 6 +++++- app/templates/play/ladder/ladder_tab.jade | 11 ++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/locale/en.coffee b/app/locale/en.coffee index e3da5e2d5..8812de23b 100644 --- a/app/locale/en.coffee +++ b/app/locale/en.coffee @@ -484,4 +484,8 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr 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 + simulate_all: "RESET AND SIMULATE GAMES" + rank: "Rank" + score: "Score" + leaderboard: "Leaderboard" + battle_as: "Battle as" \ No newline at end of file diff --git a/app/templates/play/ladder/ladder_tab.jade b/app/templates/play/ladder/ladder_tab.jade index 9fc48c340..ba6de50b3 100644 --- a/app/templates/play/ladder/ladder_tab.jade +++ b/app/templates/play/ladder/ladder_tab.jade @@ -5,11 +5,11 @@ div#columns.row tr th(colspan=4, style="color: #{team.primaryColor}") span= team.name - span Leaderboard + span(data-i18n="ladder.leaderboard") Leaderboard tr - th Rank - th Score - th.name-col-cell Name + th(data-i18n="ladder.rank") Rank + th(data-i18n="ladder.score") Score + th(data-i18n="general.name").name-col-cell Name th for session, rank in team.leaderboard.topPlayers.models @@ -20,4 +20,5 @@ div#columns.row td.name-col-cell= session.get('creatorName') || "Anonymous" td a(href="/play/level/#{level.get('slug') || level.id}/?team=#{team.otherTeam}&opponent=#{session.id}") - span Battle as #{team.otherTeam}! \ No newline at end of file + span(data-i18n="ladder.battle_as") Battle as + | #{team.otherTeam}! \ No newline at end of file