Translate 'Cheat Detected'
parent
eb89a8a8b5
commit
9a41306abd
|
@ -199,7 +199,7 @@ trait GameHelper { self: I18nHelper with UserHelper with AiHelper with StringHel
|
|||
case S.NoStart =>
|
||||
val color = game.loser.fold(Color.white)(_.color).name.capitalize
|
||||
s"$color didn't move"
|
||||
case S.Cheat => "Cheat detected"
|
||||
case S.Cheat => trans.cheatDetected.txt()
|
||||
case S.VariantEnd =>
|
||||
game.variant match {
|
||||
case chess.variant.KingOfTheHill => trans.kingInTheCenter.txt()
|
||||
|
|
|
@ -24,6 +24,7 @@ private object jsI18n {
|
|||
trans.playingRightNow,
|
||||
trans.whiteIsVictorious,
|
||||
trans.blackIsVictorious,
|
||||
trans.cheatDetected,
|
||||
trans.kingInTheCenter,
|
||||
trans.threeChecks,
|
||||
trans.variantEnding,
|
||||
|
|
|
@ -42,6 +42,7 @@ object userAnalysisI18n {
|
|||
trans.playingRightNow,
|
||||
trans.whiteIsVictorious,
|
||||
trans.blackIsVictorious,
|
||||
trans.cheatDetected,
|
||||
trans.kingInTheCenter,
|
||||
trans.threeChecks,
|
||||
trans.variantEnding,
|
||||
|
|
|
@ -29,6 +29,7 @@ val `blackIsVictorious` = new I18nKey("blackIsVictorious")
|
|||
val `youPlayTheWhitePieces` = new I18nKey("youPlayTheWhitePieces")
|
||||
val `youPlayTheBlackPieces` = new I18nKey("youPlayTheBlackPieces")
|
||||
val `itsYourTurn` = new I18nKey("itsYourTurn")
|
||||
val `cheatDetected` = new I18nKey("cheatDetected")
|
||||
val `kingInTheCenter` = new I18nKey("kingInTheCenter")
|
||||
val `threeChecks` = new I18nKey("threeChecks")
|
||||
val `raceFinished` = new I18nKey("raceFinished")
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
<string name="youPlayTheWhitePieces">You play the white pieces</string>
|
||||
<string name="youPlayTheBlackPieces">You play the black pieces</string>
|
||||
<string name="itsYourTurn">It's your turn!</string>
|
||||
<string name="cheatDetected">Cheat Detected</string>
|
||||
<string name="kingInTheCenter">King in the centre</string>
|
||||
<string name="threeChecks">Three checks</string>
|
||||
<string name="raceFinished">Race finished</string>
|
||||
|
|
|
@ -31,7 +31,7 @@ export default function status(ctrl: Ctrl): string {
|
|||
case 'noStart':
|
||||
return (d.game.winner == 'white' ? 'Black' : 'White') + " didn't move";
|
||||
case 'cheat':
|
||||
return 'Cheat detected';
|
||||
return noarg('Cheat detected');
|
||||
case 'variantEnd':
|
||||
switch (d.game.variant.key) {
|
||||
case 'kingOfTheHill':
|
||||
|
|
Loading…
Reference in New Issue