Feature request: Language parameter to Get()

More
6 years 10 months ago #2263 by johnnemann
Hi!

It would be really useful to me to have a version of the ScriptLocalization.Get() function that let me fetch a translation in a particular language without switching the whole game to that language.

e.g. ScriptLocalization.Get("Hello world!", "fr"); that would return the French translation every time.

is this possible/easy?

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

More
6 years 10 months ago #2268 by johnnemann
I was able to hack this in in a few minutes last night - good enough for my purposes, at least.

Still, it might be useful for other folks.

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

More
6 years 10 months ago #2269 by Frank
Hi,
Thanks a lot for the suggestion!
I added an extra parameter to those functions for overriding the language. I will be including that change in the next beta!

Thanks!
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.208 seconds
Template by JoomlaShine