Term changed does not work in editor
9 years 1 month ago #1104
by yuewah
Term changed does not work in editor was created 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.
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.
9 years 1 month ago #1106
by yuewah
Replied by yuewah on topic Term changed does not work in editor
I fixed myself, but not sure if it is good or not.
LocalizeInspector.cs
...
mNewKeyName = Term = mTermsArray[newIndex];
mLocalize.SetTerm (mNewKeyName); <-- added.
LocalizeInspector.cs
...
mNewKeyName = Term = mTermsArray[newIndex];
mLocalize.SetTerm (mNewKeyName); <-- added.
Please Log in or Create an account to join the conversation.
9 years 1 month ago #1116
by yuewah
Replied by yuewah on topic Term changed does not work in editor
Is the fix not have problem ?
Please Log in or Create an account to join the conversation.
9 years 1 month ago #1117
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic Term changed does not work in editor
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
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.
9 years 1 month ago #1121
by yuewah
Replied by yuewah on topic Term changed does not work in editor
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;
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.161 seconds