Feature implementation : Parse terms from scripts

More
8 years 10 months ago - 8 years 10 months ago #819 by tacticsofttech
Hi,

One of the things that were missing for me in the plugin was the ability to autogenerate terms that are only referenced in code.
IE if a script does

ScriptLocalization.Get("My Term")

it would add "My Term" to the term list.

I implemented it as part of the Tools->Parse window, attaching the implementation below.
Would be happy if it could go into the main branch so I won't have to reapply the patch each time I update the version.

If there are any notes regarding this code feel free to ask.

Awesome package btw :)
Attachments:
Last edit: 8 years 10 months ago by tacticsofttech.

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

More
8 years 10 months ago #821 by Frank
Hi,
Thanks for the contribution!

I plan to extend the Script tool to also list ALL the literal strings in your code. Not only the ones used on the ScriptLocalization.Get(x).
Once listed, the developer could select the ones that should be baked.
That should be able to detect things like label.Text = "Play".

However, while I finish the things with higher priority, that contribution is very welcome. I will test it a bit and include it for the next release.

Thanks a lot!
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.

Time to create page: 0.515 seconds
Template by JoomlaShine