diff --git a/app/views/lobby/bits.scala b/app/views/lobby/bits.scala
index 96e2accef7..7052d0d31e 100644
--- a/app/views/lobby/bits.scala
+++ b/app/views/lobby/bits.scala
@@ -132,14 +132,14 @@ object bits {
)
)
- def currentGameInfo(current: lila.app.mashup.Preload.CurrentGame) =
+ def currentGameInfo(current: lila.app.mashup.Preload.CurrentGame)(implicit ctx: Context) =
nopeInfo(
- h1("Hang on!"),
- p("You have a game in progress with ", strong(current.opponent), "."),
+ h1(trans.hangOn()),
+ p(trans.gameInProgress(strong(current.opponent))),
br,
br,
a(cls := "text button button-fat", dataIcon := "", href := routes.Round.player(current.pov.fullId))(
- "Join the game"
+ trans.joinTheGame()
),
br,
br,
@@ -148,12 +148,11 @@ object bits {
br,
postForm(action := routes.Round.resign(current.pov.fullId))(
button(cls := "text button button-red", dataIcon := "")(
- if (current.pov.game.abortable) "Abort" else "Resign",
- " the game"
+ if (current.pov.game.abortable) trans.abortTheGame() else trans.resignTheGame()
)
),
br,
- p("You can't start a new game until this one is finished.")
+ p(trans.youCantStartNewGame())
)
def nopeInfo(content: Modifier*) =
diff --git a/modules/i18n/src/main/I18nKeys.scala b/modules/i18n/src/main/I18nKeys.scala
index 72b4e14885..03528b1bd6 100644
--- a/modules/i18n/src/main/I18nKeys.scala
+++ b/modules/i18n/src/main/I18nKeys.scala
@@ -758,6 +758,11 @@ val `cantDoThisTwice` = new I18nKey("cantDoThisTwice")
val `emailAssociatedToaccount` = new I18nKey("emailAssociatedToaccount")
val `sentEmailWithLink` = new I18nKey("sentEmailWithLink")
val `tournamentEntryCode` = new I18nKey("tournamentEntryCode")
+val `hangOn` = new I18nKey("hangOn")
+val `gameInProgress` = new I18nKey("gameInProgress")
+val `abortTheGame` = new I18nKey("abortTheGame")
+val `resignTheGame` = new I18nKey("resignTheGame")
+val `youCantStartNewGame` = new I18nKey("youCantStartNewGame")
val `opponentLeftCounter` = new I18nKey("opponentLeftCounter")
val `mateInXHalfMoves` = new I18nKey("mateInXHalfMoves")
val `nextCaptureOrPawnMoveInXHalfMoves` = new I18nKey("nextCaptureOrPawnMoveInXHalfMoves")
diff --git a/translation/source/site.xml b/translation/source/site.xml
index d5ef58462a..cc123d0608 100644
--- a/translation/source/site.xml
+++ b/translation/source/site.xml
@@ -920,4 +920,9 @@ Leave empty to start games from the normal initial position.
Email address associated to the account
We've sent you an email with a link.
Tournament entry code
+ Hang on!
+ You have a game in progress with %s.
+ Abort the game
+ Resign the game
+ You can't start a new game until this one is finished.