mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
localize the ChallengePopup text
This commit is contained in:
@@ -31,7 +31,8 @@ public final class ChallengePopup extends PopupWidget {
|
|||||||
|
|
||||||
var challengerHeader = Primitive.header(challenger, false);
|
var challengerHeader = Primitive.header(challenger, false);
|
||||||
|
|
||||||
var gameText = Primitive.text(AppContext.getString("to-a-game-of") + " " + game, false);
|
var toAGameOfText = Primitive.text("to-a-game-of");
|
||||||
|
var gameText = Primitive.text(game, false);
|
||||||
|
|
||||||
var acceptButton = Primitive.button("accept", () -> {
|
var acceptButton = Primitive.button("accept", () -> {
|
||||||
onAccept.accept(playerInformation);
|
onAccept.accept(playerInformation);
|
||||||
@@ -42,6 +43,7 @@ public final class ChallengePopup extends PopupWidget {
|
|||||||
var leftSection = Primitive.vbox(
|
var leftSection = Primitive.vbox(
|
||||||
challengeText,
|
challengeText,
|
||||||
challengerHeader,
|
challengerHeader,
|
||||||
|
toAGameOfText,
|
||||||
gameText,
|
gameText,
|
||||||
Primitive.separator(),
|
Primitive.separator(),
|
||||||
Primitive.hbox(
|
Primitive.hbox(
|
||||||
|
|||||||
Reference in New Issue
Block a user