Page 1 of 1

[Solved]Text mesh pro localization not working properly

Posted: Sat Nov 17, 2018 3:38 pm
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.

Re: Text mesh pro localization not working properly

Posted: Sat Nov 17, 2018 4:14 pm
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.

Re: Text mesh pro localization not working properly

Posted: Sun Nov 18, 2018 7:00 am
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!

Re: Text mesh pro localization not working properly

Posted: Sun Nov 18, 2018 7:19 am
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.

Re: Text mesh pro localization not working properly

Posted: Sun Nov 18, 2018 8:44 am
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)

Re: Text mesh pro localization not working properly

Posted: Sun Nov 18, 2018 9:18 am
by roketronz
Works like a charm!

Thanks Tony for such a quick fix!