Reply To: Localization support

NodeCanvas Forums General Discussion Localization support Reply To: Localization support

#14679
Gavalakis
Keymaster

Sounds great @zsoik! 🙂

Another solution I know people are using (if you don’t want to create custom nodes), is to use the “MetaData” field that all ‘statement’ nodes have for an ID, and then create a custom GUI (probably based on the existing one), and use that “MetaData” to localize the text (or even the audio.)

The “MetaData” is a field member of the class “Statement”. The Statement class is one of the arguments that is passed to the “OnSubtitlesRequest” event, which the GUI is using, and which basically contains the things like “Text”, “Audio” and “MetaData” that is entered in the nodes Inspector GUI (in the graph editor).

Join us on Discord: https://discord.gg/97q2Rjh