Term changed does not work in editor

More
8 years 5 months ago #1104 by yuewah
I am using I2 2.6.0f1 + Unity 5.2.x
In Editor mode, when I change the Term in Localize Inspector, the translation below is updated, however, when I switch between the language, the textmesh text is updated using the old translation.

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #1106 by yuewah
I fixed myself, but not sure if it is good or not.

LocalizeInspector.cs
...
mNewKeyName = Term = mTermsArray[newIndex];
mLocalize.SetTerm (mNewKeyName); <-- added.

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #1116 by yuewah
Is the fix not have problem ?

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #1117 by Frank
Hi,
I just verified the change and it works fine.
The SetTerm will update the cached Term and SecondaryTerm so that enables previewing the language changes using the new term.

I have included that change in the next release of the plugin,

Thanks a lot for the workaround!
Frank

Are you :-) Give I2L 5 stars!
Are you :-( Please lets us know how to improve it!
To get the betas as soon as they are ready, check this out

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #1121 by yuewah
sorry, the workaround is not work if FinalTerm and SecondaryTerm are public.

LocalizeInspector.cs, comment out the following code.

mProp_mTerm.stringValue = Key;
mProp_mTermSecondary.stringValue = Key;

Please Log in or Create an account to join the conversation.

Time to create page: 0.175 seconds
Template by JoomlaShine