How to translate responses in game

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
AndreasJosephides
Posts: 5
Joined: Thu Nov 28, 2024 11:08 am

How to translate responses in game

Post by AndreasJosephides »

Hi,

I have a problem where my responses cannot be translated.

When i change the language (by pressing a button in my UI) i run the method:

Code: Select all

DialogueManager.SetLanguage(language);
This only translates the Subtitle UI and not the responses unfortunately. What i want is to be able to translate the responses in Greek. I will try to provide some images for my setup.

I did some research in this forum, i have tried some code i found but nothing worked so far. I was able to access the responses at runtime (and their text property) but i could not find a way to link each response to the correct corresponding translated text to assign it.


I was wondering if there is a straight forward solution to my issue.

Thank you in advance!
Attachments
Image showing my response node setup
Image showing my response node setup
Reference_Image_1_ResponseMenuSetup.png (254.12 KiB) Viewed 339 times
User avatar
Tony Li
Posts: 23272
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to translate responses in game

Post by Tony Li »

Hi,

Add a field named "Menu Text gr". Example:

localizedMenuText.png
localizedMenuText.png (31.49 KiB) Viewed 331 times
AndreasJosephides
Posts: 5
Joined: Thu Nov 28, 2024 11:08 am

Re: How to translate responses in game

Post by AndreasJosephides »

Hi Tony,

Thank you so much for your prompt and helpful response!

I truly appreciate how quickly you jumped in to assist. Your dedication and support make using the Dialogue System asset even more enjoyable!

Wishing you all the best!
User avatar
Tony Li
Posts: 23272
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to translate responses in game

Post by Tony Li »

Glad to help!
Post Reply