[Solved]Text mesh pro localization not working properly

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
roketronz
Posts: 18
Joined: Thu Jun 14, 2018 10:54 am

[Solved]Text mesh pro localization not working properly

Post by roketronz »

Hi there!

I'm having issues with text mesh pro and Localize text mesh pro script.
If the text mesh pro is a UI element, the Localize UI script works perfect.
But if it is a text mesh pro asset (the one that is not child of a canvas), localize text mesh pro will only show you the default localization, ignoring the current language.

To be clear, all my texts work fine with localize UI, and I have 2 languages set up and running. When i change the language, everything behaves properly, but it seems that when is a 3d text mesh pro text, it will always load the default value of the key.

Example:
If the game is running in english, it should load "Hello", but instead, will load "Hola" (ES is the default language, but I dont think that's the problem.)

I've updated to the last version of DS, and the problem persists. Using Unity 2018.2.13

Also, a small bug, if I click on Manual (Tools/PC/DS/Help), it takes me to the older manual, not the 2x version.
Last edited by roketronz on Sun Nov 18, 2018 9:18 am, edited 1 time in total.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Text mesh pro localization not working properly

Post by Tony Li »

Hi,
roketronz wrote: Sat Nov 17, 2018 3:38 pmI'm having issues with text mesh pro and Localize text mesh pro script.
If the text mesh pro is a UI element, the Localize UI script works perfect.
But if it is a text mesh pro asset (the one that is not child of a canvas), localize text mesh pro will only show you the default localization, ignoring the current language.

To be clear, all my texts work fine with localize UI, and I have 2 languages set up and running. When i change the language, everything behaves properly, but it seems that when is a 3d text mesh pro text, it will always load the default value of the key.

Example:
If the game is running in english, it should load "Hello", but instead, will load "Hola" (ES is the default language, but I dont think that's the problem.)

I've updated to the last version of DS, and the problem persists. Using Unity 2018.2.13
Please use the updated TextMesh Pro Support package on the Dialogue System Extras page. I just updated the LocalizeTextMeshPro component to fix the localization issue. To see the download button, expand Updated Support Packages > Updated support packages for 2.0.6.
roketronz wrote: Sat Nov 17, 2018 3:38 pmAlso, a small bug, if I click on Manual (Tools/PC/DS/Help), it takes me to the older manual, not the 2x version.
Thank you for reporting that! It will be fixed in the next release.
roketronz
Posts: 18
Joined: Thu Jun 14, 2018 10:54 am

Re: Text mesh pro localization not working properly

Post by roketronz »

Hey there Tony!

Thanks for such a quick fix!

I tried it, and it seems to be working just fine!
The only downside is that I lost all the field names assigned to each text mesh pro text, which is not ideal, but at least I was using non ui tmp texts in only one scene.

Thanks again for your help!
roketronz
Posts: 18
Joined: Thu Jun 14, 2018 10:54 am

Re: Text mesh pro localization not working properly

Post by roketronz »

Hi again!

On further testing, I'm noting that it keeps throwing me warnings
"Localize UI didn't find a localizable UI component on Texto_Continuar."

I'm using Localize Text Mesh pro script, and it seems to load the value correctly, but the warning still appears.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Text mesh pro localization not working properly

Post by Tony Li »

Thanks for reporting that. I just fixed it. Here's the direct download so you don't have to go to the Extras page:

TextMesh Pro Support (non-Standard UI)
roketronz
Posts: 18
Joined: Thu Jun 14, 2018 10:54 am

Re: Text mesh pro localization not working properly

Post by roketronz »

Works like a charm!

Thanks Tony for such a quick fix!
Post Reply