From a9f55c48a5b2345a02aace53d151fc9af1fdc8ce Mon Sep 17 00:00:00 2001 From: tpart Date: Thu, 19 Sep 2024 14:53:34 +0200 Subject: Fix: Translate difficulty names --- client/menu/lobby.gd | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/menu/lobby.gd b/client/menu/lobby.gd index 4c839ab4..5f553729 100644 --- a/client/menu/lobby.gd +++ b/client/menu/lobby.gd @@ -33,8 +33,6 @@ var bot_display_names := { "frank": tr("Frank Miller") } -var difficulty_names = [tr("Easy"), tr("Moderate"), tr("Hard"), tr("Very hard"), tr("Unplayable")] - @onready var game: Game = $"../Game" @onready var player_container = $MarginContainer/VBoxContainer/Players @@ -113,7 +111,7 @@ func select_map(i: int): var map_data: Dictionary = game.maps[i][1] map_name_label.text = map_data["name"] map_player_label.text = tr("%d players recommended") % map_data["players"] - map_difficulty_label.text = difficulty_names[map_data["difficulty"] - 1] + map_difficulty_label.text = tr("c.map.difficulty.%d" % (map_data["difficulty"] - 1)) selected_map_name = game.maps[i][0] map_list_container.get_child(i).grab_focus() -- cgit v1.2.3-70-g09d2