+1 vote

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?

asked May 19, 2018 in Engine by HalfTough (109 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.