mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-02-17 08:50:58 -05:00
Added i18n to my matches tab
This commit is contained in:
parent
9f5c0f03be
commit
ca271fedd6
2 changed files with 47 additions and 19 deletions
|
@ -1,4 +1,5 @@
|
|||
module.exports = nativeDescription: "English", englishDescription: "English", translation:
|
||||
module.exports =
|
||||
nativeDescription: "English", englishDescription: "English", translation:
|
||||
common:
|
||||
loading: "Loading..."
|
||||
saving: "Saving..."
|
||||
|
@ -276,6 +277,7 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr
|
|||
commit_msg: "Commit Message"
|
||||
history: "History"
|
||||
version_history_for: "Version History for: "
|
||||
result: "Result"
|
||||
results: "Results"
|
||||
description: "Description"
|
||||
or: "or"
|
||||
|
@ -284,6 +286,11 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr
|
|||
message: "Message"
|
||||
code: "Code"
|
||||
ladder: "Ladder"
|
||||
opponent: "Opponent"
|
||||
when: "When"
|
||||
win: "Win"
|
||||
loss: "Loss"
|
||||
tie: "Tie"
|
||||
|
||||
about:
|
||||
who_is_codecombat: "Who is CodeCombat?"
|
||||
|
@ -488,4 +495,17 @@ module.exports = nativeDescription: "English", englishDescription: "English", tr
|
|||
rank: "Rank"
|
||||
score: "Score"
|
||||
leaderboard: "Leaderboard"
|
||||
battle_as: "Battle as"
|
||||
battle_as: "Battle as"
|
||||
summary_your: "Your "
|
||||
summary_matches: "Matches - "
|
||||
summary_wins: " Wins, "
|
||||
summary_losses: " Losses"
|
||||
rank_no_code: "No New Code to Rank"
|
||||
rank_my_game: "Rank My Game!"
|
||||
rank_submitting: "Submitting..."
|
||||
rank_submitted: "Submitted for Ranking"
|
||||
rank_failed: "Failed to Rank"
|
||||
rank_being_ranked: "Game Being Ranked"
|
||||
code_being_simulated: "Your new code is being simulated by other players for ranking. This will refresh as new matches come in."
|
||||
no_ranked_matches_pre: "No ranked matches for the "
|
||||
no_ranked_matches_post: " team! Play against some competitors and then come back here to get your game ranked."
|
|
@ -11,16 +11,22 @@ div#columns.row
|
|||
|
||||
tr
|
||||
th(colspan=4, style="color: #{team.primaryColor}")
|
||||
span Your #{team.name} Matches - #{team.wins} Wins, #{team.losses} Losses
|
||||
span(data-i18n="ladder.summary_your") Your
|
||||
|#{team.name}
|
||||
span(data-i18n="ladder.summary_matches") Matches -
|
||||
|#{team.wins}
|
||||
span(data-i18n="ladder.summary_wins") Wins,
|
||||
|#{team.losses}
|
||||
span(data-i18n="ladder.summary_losses") Losses
|
||||
|
||||
if team.session
|
||||
button.btn.btn-sm.btn-warning.pull-right.rank-button(data-session-id=team.session.id)
|
||||
span.unavailable.hidden No New Code to Rank
|
||||
span.rank.hidden Rank My Game!
|
||||
span.submitting.hidden Submitting...
|
||||
span.submitted.hidden Submitted for Ranking
|
||||
span.failed.hidden Failed to Rank
|
||||
span.ranking.hidden Game Being Ranked
|
||||
span(data-i18n="ladder.rank_no_code").unavailable.hidden No New Code to Rank
|
||||
span(data-i18n="ladder.rank_my_game").rank.hidden Rank My Game!
|
||||
span(data-i18n="ladder.rank_submitting").submitting.hidden Submitting...
|
||||
span(data-i18n="ladder.rank_submitted").submitted.hidden Submitted for Ranking
|
||||
span(data-i18n="ladder.rank_failed").failed.hidden Failed to Rank
|
||||
span(data-i18n="ladder.rank_being_ranked").ranking.hidden Game Being Ranked
|
||||
|
||||
if team.chartData
|
||||
tr
|
||||
|
@ -28,19 +34,19 @@ div#columns.row
|
|||
img(src="https://chart.googleapis.com/chart?chs=450x125&cht=lxy&chco=#{team.chartColor}&chtt=Score%3A+#{team.currentScore}&chts=#{team.chartColor},16,r&chf=a,s,000000FF&chls=2&chm=o,#{team.chartColor},0,4&chd=t:#{team.chartData}")
|
||||
|
||||
tr
|
||||
th Result
|
||||
th Opponent
|
||||
th When
|
||||
th(data-i18n="general.result") Result
|
||||
th(data-i18n="general.opponent") Opponent
|
||||
th(data-i18n="general.when") When
|
||||
th
|
||||
for match in team.matches
|
||||
tr(class=(match.stale ? "stale " : "") + match.state)
|
||||
td.state-cell
|
||||
if match.state === 'win'
|
||||
span.win Win
|
||||
span(data-i18n="general.win").win Win
|
||||
if match.state === 'loss'
|
||||
span.loss Loss
|
||||
span(data-i18n="general.loss").loss Loss
|
||||
if match.state === 'tie'
|
||||
span.tie Tie
|
||||
span(data-i18n="general.tie").tie Tie
|
||||
td.name-cell= match.opponentName || "Anonymous"
|
||||
td.time-cell= match.when
|
||||
td.battle-cell
|
||||
|
@ -51,10 +57,12 @@ div#columns.row
|
|||
tr
|
||||
if team.isRanking
|
||||
td(colspan=4).alert.alert-info
|
||||
| Your new code is being simulated by other players for ranking.
|
||||
| This will refresh as new matches come in.
|
||||
span(data-i18n="ladder.code_being_simulated")
|
||||
Your new code is being simulated by other players for ranking.
|
||||
This will refresh as new matches come in.
|
||||
else
|
||||
td(colspan=4).alert.alert-warning
|
||||
| No ranked matches for the #{team.name} team!
|
||||
| Play against some competitors and then come back here to get your game ranked.
|
||||
span(data-i18n="ladder.no_ranked_matches_pre") No ranked matches for the
|
||||
|#{team.name}
|
||||
span(data-i18n="ladder.no_ranked_matches_post") team! Play against some competitors and then come back here to get your game ranked.
|
||||
|
||||
|
|
Loading…
Reference in a new issue