0 votes

Hello everyone,

I need your help please.
I have imported a translation csv file in godot, it works fine but how can I access the id of the translation.

I tried:

func _ready():
var pre = preload("res://words.en.xl").get_message_list()
get_node("Label").set_text(str(pre))

var pre1 = preload("res://words.en.xl").get_message_list()[0]
get_node("Label1").set_text(str(pre1))

I get all the id references in the pre variable (array string) GREAT but,

when I try to get the first id (index 0) in the pre1 variable, it returns the translation word not the ID.

Could someone tell me how to get access to the ID?

Godot 2.1.5 beta1
Windows 10 HE 64bits

If this is a bug I will try to post to github before the next release.

in Engine by (169 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 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.