Bug: Can't Enable Language at Runtime

More
5 years 3 months ago - 5 years 3 months ago #3931 by bschug
It is currently not possible to enable a disabled language at runtime. The reason is a bug in the LanguageSourceData.EnableLanguage() method:
int idx = GetLanguageIndex(Language, false);

should be
int idx = GetLanguageIndex(Language, false, false);

Otherwise, it will never find the index of a disabled language, which means EnableLanguage can only be used to disable a language, not enable it.
Last edit: 5 years 3 months ago by bschug.

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

More
5 years 3 months ago #3933 by Frank
Disabled languages were meant to not show in releases some languages that are not yet ready. Didn't thought on a use case for enabling them at runtime.

But now that you have needed it, I will make the change to support it.

Thanks for looking into that and the suggestion on how to fix it!!
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.224 seconds
Template by JoomlaShine