Public method to generate ScriptLocalization file with all the terms

More
4 years 2 months ago - 4 years 2 months ago #4168 by Tinken
Hi,

I want to create an editor script to import my CSV files and generate the classes ScriptLocalization, and ScriptTerms.
So far, I am able to import the CSV files as I need, but did not find a way to generate the script without changing the plugin.
Did I miss something, or there's no way so far to do that?

Thanks in advance
Quentin
Last edit: 4 years 2 months ago by Tinken. Reason: change title for a better understanding

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

More
4 years 2 months ago #4170 by Frank
Hi,
Creating the ScriptLocalization file, its done at
Assets/I2/Localization/Scripts/Editor/Localization/LocalizationEditor_Tools_Script.cs in function BuildScriptWithSelectedTerms().

But that function is only available when the LanguageSource is shown.
I will try for the next release to make those functions static so that they could be called from your own editor scripts.
In the mean time, you could try set them to static and pass the LanguageSource to get the terms from there.

Hope that helps,
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
The following user(s) said Thank You: Tinken

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

More
4 years 2 months ago #4171 by Tinken
Thanks Frank for taking in consideration my need! I really appreciate.
In the mean time, thanks for the tip, I will see how I can implement this easily.

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

Time to create page: 0.129 seconds
Template by JoomlaShine