translation fixes

This commit is contained in:
fschade
2026-09-10 12:01:35 +02:00
parent 520a3dce25
commit 6743f4210a
8 changed files with 26 additions and 17 deletions
@@ -1,12 +1,15 @@
extends RichTextLabel
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
_update_head_text()
func _notification(what: int) -> void:
if what == NOTIFICATION_TRANSLATION_CHANGED:
_update_head_text()
func _update_head_text() -> void:
var scene_name = get_tree().current_scene.name
text = "/" + scene_name + "/"
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass
text = "/" + tr(String(scene_name)) + "/"