Pass terms into scripts

More
8 years 9 months ago #842 by Deadcow
Is there a way to pass translation term into my script? Something like

public Term MyLovalizationEntry;

and then set which term to refer through inspector and then get localized value by calling "MyLovalizationEntry.value" or something like this?

I dinamically change some GUI Text values through my script based on some conditions and I think this way to refer to localized values is much better than ScriptLocalization.Get() (since this Get usage is not tracked and I don't like to use string keys :) )

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

More
8 years 9 months ago #845 by Frank
Replied by Frank on topic Pass terms into scripts
I currently don't have that class, but I see that it can be helpful.

I will add it to one of the next releases and will also add a CustomPropertyInspector so that it shows as a dropdown with all terms when showing that object in the script's inspector.

BTW, in the new version (2.6.0), the plugin parses the usage of the terms in the Localize component and also if used with ScriptLocalization.Get(xxx).

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 9 months ago #846 by Deadcow
Replied by Deadcow on topic Pass terms into scripts
Thanks, Frank! Your localization manager is one of the best assets I had bought so far :)

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

Time to create page: 0.151 seconds
Template by JoomlaShine