translation fixes
This commit is contained in:
@@ -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)) + "/"
|
||||
|
||||
Reference in New Issue
Block a user