+3 votes

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?

in Engine by (114 points)

1 Answer

0 votes

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

by (14 points)
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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.