Some questions about Localization

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
hipsterdufus
Posts: 104
Joined: Thu Aug 12, 2021 6:39 pm

Some questions about Localization

Post by hipsterdufus »

Hello, I'm trying to integrate the Unity Localization package with Dialogue System.

I exported the string table from my Dialogue Database and filled out the fields for each language. Things seem to be working except the menu response options are not appearing translated in the game (the subtitles are translated).

Is there an extra step I'm missing? I noticed in the instructions I should click the "String Table To Dialogue System" button to reimport the translations back into the dialogue database but I don't see that button - I only have a "Dialogue to String Table" button.

I also tried ticking the Replace Get Localized Text option on the Dialogue System Localization Bridge component but it seemed to have no effect. Should that be turned on or off if I'm using Unity localization?

Also, I deleted a locale and for some reason now my dialogue subtitles show German when the locale is English - hoping I just need to re-import the string table with that missing button...
ds_to_loc.png
ds_to_loc.png (34 KiB) Viewed 3759 times
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: Some questions about Localization

Post by Tony Li »

Hi,

Are there any errors or warnings in the Console window?

Can you back up your project and update to the current Dialogue System version, and then import the current Localization Package Support file? If not, download the current Dialogue System version into a temp project so you can get at the Localization Package Support file.
hipsterdufus
Posts: 104
Joined: Thu Aug 12, 2021 6:39 pm

Re: Some questions about Localization

Post by hipsterdufus »

I upgraded to the latest dialogue system to try and make the button appear but it didn't change anything. I don't notice any errors from Dialogue System in the console. Dialogue System welcome window says I'm on 2.2.50.1 now.
hipsterdufus
Posts: 104
Joined: Thu Aug 12, 2021 6:39 pm

Re: Some questions about Localization

Post by hipsterdufus »

There are warnings about sequencer commands but only at runtime and I think it's normal for my game.
hipsterdufus
Posts: 104
Joined: Thu Aug 12, 2021 6:39 pm

Re: Some questions about Localization

Post by hipsterdufus »

Will try reimporting the Localization third party package now (sorry I missed that part)
hipsterdufus
Posts: 104
Joined: Thu Aug 12, 2021 6:39 pm

Re: Some questions about Localization

Post by hipsterdufus »

I opened the Localization third party package in pixel crushers - it looked like it had a change to a file that might be what I need but there's still no change to the window - button is still missing. I tried reopening the window and unity editor but no luck.
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: Some questions about Localization

Post by Tony Li »

Hi,

The window should look more like this:

dsToLoc.png
dsToLoc.png (22.95 KiB) Viewed 3746 times

Try deleting Assets > Pixel Crushers > Dialogue System > Third Party Support > Localization Package Support. Then import Localization Package Support again.

Are you using any kind of editor extension that changes the way the Unity editor works?
hipsterdufus
Posts: 104
Joined: Thu Aug 12, 2021 6:39 pm

Re: Some questions about Localization

Post by hipsterdufus »

Thanks that seems to have fixed it. I was able to import the string table to the DialogueDatabase and the menu responses are translated now.

I think I just have one issue remaining which is why the dialogue system is displaying German when I set the locale to English. I have implemented localization on a couple Text Buttons and they seem to be updating to English correctly but within the Dialogue System it thinks English is German. Is there a way that the Dialogue system could get mapped incorrectly from the string table somehow?
User avatar
Tony Li
Posts: 23259
Joined: Thu Jul 18, 2013 1:27 pm

Re: Some questions about Localization

Post by Tony Li »

Hi,

Use the Dialogue Editor window to check the values of your conversation entries' "Default Text" and "de" (German) fields.

If they look correct, then inspect the Dialogue Manager and click Display Settings > Localization Settings > Reset Language PlayerPrefs.
hipsterdufus
Posts: 104
Joined: Thu Aug 12, 2021 6:39 pm

Re: Some questions about Localization

Post by hipsterdufus »

Thank you, I noticed that some of the text that should be English in the dialogue system was changed to German - there was just an issue in my translation script that added the translations in the wrong column of the csv file sometimes.

I started the long import string table to Dialogue System process and am waiting but I suspect It will work now.

Thanks.
Post Reply