Bug: Can't Enable Language at Runtime
5 years 3 months ago - 5 years 3 months ago #3931
by bschug
Bug: Can't Enable Language at Runtime was created by bschug
It is currently not possible to enable a disabled language at runtime. The reason is a bug in the LanguageSourceData.EnableLanguage() method:
should be
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.
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.
5 years 3 months ago #3933
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic Bug: Can't Enable Language at Runtime
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
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