Translate 'Cheat Detected'

pull/8820/head
TheYoBots 2021-04-30 18:03:56 +00:00
parent eb89a8a8b5
commit 9a41306abd
6 changed files with 6 additions and 2 deletions

View File

@ -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()

View File

@ -24,6 +24,7 @@ private object jsI18n {
trans.playingRightNow,
trans.whiteIsVictorious,
trans.blackIsVictorious,
trans.cheatDetected,
trans.kingInTheCenter,
trans.threeChecks,
trans.variantEnding,

View File

@ -42,6 +42,7 @@ object userAnalysisI18n {
trans.playingRightNow,
trans.whiteIsVictorious,
trans.blackIsVictorious,
trans.cheatDetected,
trans.kingInTheCenter,
trans.threeChecks,
trans.variantEnding,

View File

@ -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")

View File

@ -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>

View File

@ -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':