Translate public UI and docs to English
This commit is contained in:
@@ -643,7 +643,7 @@ func _create_debug_panel() -> void:
|
||||
browser_column.add_child(browser_title)
|
||||
|
||||
var browser_hint: Label = Label.new()
|
||||
browser_hint.text = "Offene Brogether-Lobbys werden hier angezeigt."
|
||||
browser_hint.text = "Open Brogether lobbies appear here."
|
||||
browser_hint.autowrap = true
|
||||
browser_column.add_child(browser_hint)
|
||||
|
||||
@@ -657,7 +657,7 @@ func _create_debug_panel() -> void:
|
||||
scroll.add_child(lobby_list_container)
|
||||
|
||||
lobby_empty_label = Label.new()
|
||||
lobby_empty_label.text = "Noch keine Lobbys geladen."
|
||||
lobby_empty_label.text = "No lobbies loaded yet."
|
||||
lobby_empty_label.autowrap = true
|
||||
lobby_list_container.add_child(lobby_empty_label)
|
||||
|
||||
@@ -681,20 +681,20 @@ func _create_debug_panel() -> void:
|
||||
create_box.add_child(create_content)
|
||||
|
||||
var create_title: Label = Label.new()
|
||||
create_title.text = "LOBBY ERSTELLEN"
|
||||
create_title.text = "CREATE LOBBY"
|
||||
create_content.add_child(create_title)
|
||||
|
||||
lobby_name_input = LineEdit.new()
|
||||
lobby_name_input.placeholder_text = "Lobbyname"
|
||||
lobby_name_input.placeholder_text = "Lobby name"
|
||||
lobby_name_input.rect_min_size = Vector2(360, 34)
|
||||
create_content.add_child(lobby_name_input)
|
||||
|
||||
lobby_password_check = CheckBox.new()
|
||||
lobby_password_check.text = "Passwort verwenden"
|
||||
lobby_password_check.text = "Use password"
|
||||
create_content.add_child(lobby_password_check)
|
||||
|
||||
lobby_password_input = LineEdit.new()
|
||||
lobby_password_input.placeholder_text = "Passwort"
|
||||
lobby_password_input.placeholder_text = "Password"
|
||||
lobby_password_input.secret = true
|
||||
lobby_password_input.rect_min_size = Vector2(360, 34)
|
||||
create_content.add_child(lobby_password_input)
|
||||
@@ -715,17 +715,17 @@ func _create_debug_panel() -> void:
|
||||
join_box.add_child(join_content)
|
||||
|
||||
var join_title: Label = Label.new()
|
||||
join_title.text = "AUSGEWAEHLTE LOBBY"
|
||||
join_title.text = "SELECTED LOBBY"
|
||||
join_content.add_child(join_title)
|
||||
|
||||
selected_lobby_label = Label.new()
|
||||
selected_lobby_label.text = "Keine Lobby ausgewaehlt."
|
||||
selected_lobby_label.text = "No lobby selected."
|
||||
selected_lobby_label.autowrap = true
|
||||
selected_lobby_label.rect_min_size = Vector2(360, 58)
|
||||
join_content.add_child(selected_lobby_label)
|
||||
|
||||
join_password_input = LineEdit.new()
|
||||
join_password_input.placeholder_text = "Passwort, falls noetig"
|
||||
join_password_input.placeholder_text = "Password if required"
|
||||
join_password_input.secret = true
|
||||
join_password_input.rect_min_size = Vector2(360, 34)
|
||||
join_content.add_child(join_password_input)
|
||||
@@ -744,12 +744,12 @@ func _create_debug_panel() -> void:
|
||||
box.add_child(lobby_view)
|
||||
|
||||
lobby_title_label = Label.new()
|
||||
lobby_title_label.text = "WARTEBEREICH"
|
||||
lobby_title_label.text = "WAITING ROOM"
|
||||
lobby_title_label.add_color_override("font_color", Color(0.92, 0.96, 1.0, 1.0))
|
||||
lobby_view.add_child(lobby_title_label)
|
||||
|
||||
lobby_detail_label = Label.new()
|
||||
lobby_detail_label.text = "Noch nicht in einer Lobby."
|
||||
lobby_detail_label.text = "Not in a lobby yet."
|
||||
lobby_detail_label.autowrap = true
|
||||
lobby_view.add_child(lobby_detail_label)
|
||||
|
||||
@@ -894,7 +894,7 @@ func _update_lobby_browser() -> void:
|
||||
_clear_children(lobby_list_container)
|
||||
if available_lobbies.empty():
|
||||
lobby_empty_label = Label.new()
|
||||
lobby_empty_label.text = "Keine Brogether-Lobbys gefunden.\nErstelle eine neue Lobby oder druecke Refresh."
|
||||
lobby_empty_label.text = "No Brogether lobbies found.\nCreate a lobby or press Refresh."
|
||||
lobby_empty_label.autowrap = true
|
||||
lobby_empty_label.rect_min_size = Vector2(360, 80)
|
||||
lobby_list_container.add_child(lobby_empty_label)
|
||||
@@ -911,7 +911,7 @@ func _update_lobby_browser() -> void:
|
||||
|
||||
func _format_lobby_summary(summary: Dictionary) -> String:
|
||||
var lock_text := "PASSWORT" if bool(summary.get("has_password", false)) else "OFFEN"
|
||||
return "%s\n%s/%s Spieler | %s | Host: %s" % [
|
||||
return "%s\n%s/%s players | %s | Host: %s" % [
|
||||
str(summary.get("name", "Brogether Lobby")),
|
||||
str(summary.get("member_count", 0)),
|
||||
str(summary.get("max_members", MAX_LOBBY_MEMBERS)),
|
||||
@@ -930,10 +930,10 @@ func _update_selected_lobby_label() -> void:
|
||||
return
|
||||
var summary: Dictionary = _get_selected_lobby_summary()
|
||||
if summary.empty():
|
||||
selected_lobby_label.text = "Keine Lobby ausgewaehlt."
|
||||
selected_lobby_label.text = "No lobby selected."
|
||||
return
|
||||
var password_text := "Passwort noetig" if bool(summary.get("has_password", false)) else "Kein Passwort"
|
||||
selected_lobby_label.text = "%s\n%s/%s Spieler\n%s" % [
|
||||
var password_text := "Password required" if bool(summary.get("has_password", false)) else "No password"
|
||||
selected_lobby_label.text = "%s\n%s/%s players\n%s" % [
|
||||
str(summary.get("name", "Brogether Lobby")),
|
||||
str(summary.get("member_count", 0)),
|
||||
str(summary.get("max_members", MAX_LOBBY_MEMBERS)),
|
||||
@@ -955,16 +955,16 @@ func _update_lobby_room() -> void:
|
||||
_clear_children(lobby_members_container)
|
||||
if lobby_id == 0:
|
||||
if lobby_title_label != null:
|
||||
lobby_title_label.text = "WARTEBEREICH"
|
||||
lobby_title_label.text = "WAITING ROOM"
|
||||
if lobby_detail_label != null:
|
||||
lobby_detail_label.text = "Noch nicht in einer Lobby."
|
||||
lobby_detail_label.text = "Not in a lobby yet."
|
||||
return
|
||||
var lobby_name: String = _get_lobby_data(lobby_id, "name", "Brogether Lobby")
|
||||
var password_text := "mit Passwort" if _get_lobby_data(lobby_id, "has_password", "0") == "1" else "ohne Passwort"
|
||||
var password_text := "password protected" if _get_lobby_data(lobby_id, "has_password", "0") == "1" else "no password"
|
||||
if lobby_title_label != null:
|
||||
lobby_title_label.text = lobby_name.to_upper()
|
||||
if lobby_detail_label != null:
|
||||
lobby_detail_label.text = "Wartebereich %s | %s/%s Spieler | %s | %s" % [str(lobby_id), lobby_members.size(), MAX_LOBBY_MEMBERS, password_text, _lobby_ready_summary()]
|
||||
lobby_detail_label.text = "Waiting room %s | %s/%s players | %s | %s" % [str(lobby_id), lobby_members.size(), MAX_LOBBY_MEMBERS, password_text, _lobby_ready_summary()]
|
||||
for member in lobby_members:
|
||||
_add_member_card(member)
|
||||
var empty_slot_count: int = max(0, MAX_LOBBY_MEMBERS - lobby_members.size())
|
||||
@@ -1026,7 +1026,7 @@ func _add_empty_member_slot(_index: int) -> void:
|
||||
lobby_members_container.add_child(card)
|
||||
|
||||
var label: Label = Label.new()
|
||||
label.text = "Freier Platz"
|
||||
label.text = "Open slot"
|
||||
label.align = Label.ALIGN_CENTER
|
||||
label.valign = Label.VALIGN_CENTER
|
||||
label.rect_min_size = Vector2(360, 96)
|
||||
|
||||
Reference in New Issue
Block a user