Translating tabs names in TabContainer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By HalfTough

Names of the tabs in TabContainer are names of its children nodes. Problem is, they don’t translate even if you have KEY same as given name in your translation.

To fix that I added simple script to my TabContainer

func _ready():
	for i in range(get_tab_count()):
    	set_tab_title(i,tr(get_tab_title(i)))

and it works fine. But it kinda seems more like workaround than proper way to handle this.
Is there a better way to do it?

:bust_in_silhouette: Reply From: tonywhite1985

Today translation is done pretty well, but tabs width aren’t update. So your code is still needed.