split rated/casual translations for game and tournament (fixes #3902)
This commit is contained in:
parent
644063f0f2
commit
af55a586a5
|
@ -22,7 +22,7 @@
|
|||
}
|
||||
@if(!t.position.initial) {
|
||||
• @trans.thematic()
|
||||
} • @t.mode.fold(trans.casual, trans.rated)()
|
||||
} • @t.mode.fold(trans.casualTournament, trans.ratedTournament)()
|
||||
</span>
|
||||
</a>
|
||||
</td>
|
||||
|
|
|
@ -24,6 +24,6 @@ trans.draws,
|
|||
trans.nextXTournament,
|
||||
trans.viewMoreTournaments,
|
||||
trans.averageOpponent,
|
||||
trans.rated,
|
||||
trans.casual
|
||||
trans.ratedTournament,
|
||||
trans.casualTournament
|
||||
))
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
• @trans.thematic()
|
||||
} • @tour.durationString
|
||||
</span>
|
||||
@tour.mode.fold(trans.casual, trans.rated)() •
|
||||
@tour.mode.fold(trans.casualTournament, trans.ratedTournament)() •
|
||||
@systemName(tour.system).capitalize
|
||||
<a href="@routes.Tournament.help(tour.system.toString.toLowerCase.some)" data-icon=""></a>
|
||||
</div>
|
||||
|
|
|
@ -174,6 +174,8 @@ val `unlimited` = new Translated("unlimited", Site)
|
|||
val `mode` = new Translated("mode", Site)
|
||||
val `casual` = new Translated("casual", Site)
|
||||
val `rated` = new Translated("rated", Site)
|
||||
val `casualTournament` = new Translated("casualTournament", Site)
|
||||
val `ratedTournament` = new Translated("ratedTournament", Site)
|
||||
val `thisGameIsRated` = new Translated("thisGameIsRated", Site)
|
||||
val `rematch` = new Translated("rematch", Site)
|
||||
val `rematchOfferSent` = new Translated("rematchOfferSent", Site)
|
||||
|
|
|
@ -202,6 +202,8 @@
|
|||
<string name="mode">Mode</string>
|
||||
<string name="casual">Casual</string>
|
||||
<string name="rated">Rated</string>
|
||||
<string name="casualTournament">Casual</string>
|
||||
<string name="ratedTournament">Rated</string>
|
||||
<string name="thisGameIsRated">This game is rated</string>
|
||||
<string name="rematch">Rematch</string>
|
||||
<string name="rematchOfferSent">Rematch offer sent</string>
|
||||
|
|
|
@ -138,7 +138,7 @@ function renderTournament(ctrl, tour) {
|
|||
displayClock(tour.clock) + ' ',
|
||||
tour.variant.key === 'standard' ? null : tour.variant.name + ' ',
|
||||
tour.position ? 'Thematic ' : null,
|
||||
tour.rated ? ctrl.trans('rated') : ctrl.trans('casual')
|
||||
tour.rated ? ctrl.trans('ratedTournament') : ctrl.trans('casualTournament')
|
||||
]),
|
||||
tour.nbPlayers ? h('span.nb-players', {
|
||||
attrs: { 'data-icon': 'r' }
|
||||
|
|
Loading…
Reference in a new issue