i18n: split xVsYinZ (fixes #5486)
parent
2021392bb4
commit
f32198ae62
|
@ -63,7 +63,11 @@ object timeline {
|
|||
a(href := routes.Simul.show(simulId))(simulName)
|
||||
)
|
||||
case GameEnd(playerId, opponent, win, perfKey) => lila.rating.PerfType(perfKey) map { perf =>
|
||||
trans.xVsYinZ(
|
||||
(win match {
|
||||
case Some(true) => trans.victoryVsYInZ
|
||||
case Some(false) => trans.defeatVsYInZ
|
||||
case None => trans.drawVsYInZ
|
||||
})(
|
||||
a(
|
||||
href := routes.Round.player(playerId),
|
||||
dataIcon := perf.iconChar,
|
||||
|
@ -71,7 +75,7 @@ object timeline {
|
|||
)(win match {
|
||||
case Some(true) => trans.victory()
|
||||
case Some(false) => trans.defeat()
|
||||
case _ => trans.draw()
|
||||
case None => trans.draw()
|
||||
}),
|
||||
userIdLink(opponent, withOnline = false),
|
||||
perf.name
|
||||
|
|
|
@ -484,7 +484,9 @@ val `xAnsweredY` = new Translated("xAnsweredY", Site)
|
|||
val `xCommentedY` = new Translated("xCommentedY", Site)
|
||||
val `victory` = new Translated("victory", Site)
|
||||
val `defeat` = new Translated("defeat", Site)
|
||||
val `xVsYinZ` = new Translated("xVsYinZ", Site)
|
||||
val `victoryVsYInZ` = new Translated("victoryVsYInZ", Site)
|
||||
val `defeatVsYInZ` = new Translated("defeatVsYInZ", Site)
|
||||
val `drawVsYInZ` = new Translated("drawVsYInZ", Site)
|
||||
val `timeline` = new Translated("timeline", Site)
|
||||
val `starting` = new Translated("starting", Site)
|
||||
val `allInformationIsPublicAndOptional` = new Translated("allInformationIsPublicAndOptional", Site)
|
||||
|
|
|
@ -589,7 +589,9 @@ computer analysis, game chat and shareable URL.</string>
|
|||
<string name="xCommentedY">%1$s commented %2$s</string>
|
||||
<string name="victory">Victory</string>
|
||||
<string name="defeat">Defeat</string>
|
||||
<string name="xVsYinZ">%1$s vs %2$s in %3$s</string>
|
||||
<string name="victoryVsYInZ">%1$s vs %2$s in %3$s</string>
|
||||
<string name="defeatVsYInZ">%1$s vs %2$s in %3$s</string>
|
||||
<string name="drawVsYInZ">%1$s vs %2$s in %3$s</string>
|
||||
<string name="timeline">Timeline</string>
|
||||
<string name="starting">Starting:</string>
|
||||
<string name="allInformationIsPublicAndOptional">All information is public and optional.</string>
|
||||
|
|
Loading…
Reference in New Issue