added i18n keys for ingame item descriptions and button prompts

This commit is contained in:
2025-08-20 19:30:30 +10:00
parent 198177bbae
commit 2859b6dd43
50 changed files with 297 additions and 114 deletions

View File

@@ -82,7 +82,7 @@ func set_energy_visible(value: bool) -> void:
func _process(_delta: float) -> void:
fps_label.text = "FPS: " + str(Engine.get_frames_per_second())
wave_start_label.text = parse_action_tag("[center]Press #Ready# to start wave")
wave_start_label.text = tr(parse_action_tag("PROMPT_START_WAVE"))
place_text.text = parse_action_tag("[center]#Primary Fire#")
swap_text.text = parse_action_tag("[center]#Secondary Fire#")
@@ -110,7 +110,7 @@ func tween_label(x: float) -> void:
func set_hover_text(text: String) -> void:
$TextureRect2.visible = true
$TextureRect.visible = false
hover_text.text = parse_action_tag(text)
hover_text.text = tr(parse_action_tag(text))
hover_text.visible = true