-
-
Notifications
You must be signed in to change notification settings - Fork 6
Localization
Emanuele Manzione edited this page Apr 8, 2020
·
4 revisions
Both Launcher and Admin Tool are localizable.
You just need to create a new class that implements the IUpdaterLocalizedMessages interface. You can find the sample for English on MHLab/Patch/Launcher/Scripts/Localization/EnglishUpdaterLocalizedMessages.cs.
When you implemented your own localized class, you can inject it into the UpdatingContext object:
_context = new UpdatingContext(settings, progress);
_context.LocalizedMessages = new YourAwesomeLanguageUpdaterLocalizedMessages();You can take a look at it in Launcher.cs script in Initialize method.