Multilanguage Support

NodeCanvas Forums Support Multilanguage Support

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #12089
    marwi
    Participant

    Hello,

    I bought NodeCanvas quite some time ago and am now researching for a game what to use for dialogs. I want to make sure I will be able to support multiple languages in the long run and I couldn’t find many options about that except from export/import to JSON from the Dialog Canvas Window.
    Is there a way to handle loading language files/translations into the nodes (say I have my dialog tree created in english, beeing able to export only the necessary information like 1 id and 1 string of text to json to hand it to translation)? Can I decouple the actual text from the node meta-information (like positioning and connection)?

    Cheers
    Marcel

    #12097
    Gavalakis
    Keymaster

    Hello,

    Sorry for the late reply.
    At least right now, exporting dialogue text to some sort of special format for localization purposes only is not possible, but it is something I am looking after implementing.
    Some people that I know of using NodeCanvas, have handled localization by using the MetaData for the KEY and have modified the UI code (DialogueGUI.cs) for reading this KEY and fetching the localized version of the text in question, before displaying it.

    Once again, a better way for handling localization is already in the roadmap.
    If you have any question or need any help with what I suggested above, please let me know.
    Thanks!

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

    #12101
    marwi
    Participant

    Hi!
    Not a problem. Thanks for the reply!

    I was thinking of that as well, but I don’t feel good about manually editing/adding IDs in possible large amounts of dialogues. I’m also unsure if I want the dialogue system too tightly coupled with the engine so I spend some of my time last week on implementing a custom dialogue parser so that I can write dialogues in a standart text editor and then use the parsed information in-engine.

    Thanks again for your help and the system! I’m really looking forward to actually using node canvas on a future project 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.