Try to use $l10n_ in XML GUI

Your forum for all discussions around Modding.
Tunis
Posts: 12
Joined: Thu Mar 18, 2021 1:44 pm

Try to use $l10n_ in XML GUI

Post by Tunis »

Hello,
I am working on a mod GUI and have set text in the XML to $l10n_some_text. But I get "missing 'some_text' in l10n_en.xml".
I can use onCreate and set it with lua: element:setText(g_i18n:getText('some_text'))

Is there something I missing I must do for it to work in GUI XML?