Skip to content

Commit

Permalink
Updates blockgame localization (#3430)
Browse files Browse the repository at this point in the history
  • Loading branch information
AJCM-git authored Feb 27, 2021
1 parent 1056b90 commit 4cb59a0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Content.Client/Arcade/BlockGameMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,10 @@ public void SetGameoverInfo(int amount, int? localPlacement, int? globalPlacemen
var globalPlacementText = globalPlacement == null ? "-" : $"#{globalPlacement}";
var localPlacementText = localPlacement == null ? "-" : $"#{localPlacement}";
_finalScoreLabel.Text =
Loc.GetString("Global: {0}\nLocal: {1}\nPoints: {2}", globalPlacementText, localPlacementText, amount);
Loc.GetString("blockgame-gameover-info",
("global", globalPlacementText),
("local", localPlacementText),
("points", amount));
}

public void UpdatePoints(int points)
Expand Down
5 changes: 4 additions & 1 deletion Resources/Locale/en-US/blockgame.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
blockgame-points-label = Points: {$points}
# Current game level
blockgame-level-label = Level: {$level}
blockgame-level-label = Level: {$level}
# Game over information of your round
blockgame-gameover-info = Global: {$global}\nLocal: {$local}\nPoints: {$points}

0 comments on commit 4cb59a0

Please sign in to comment.