Skip to content

Localization

Emanuele Manzione edited this page Apr 8, 2020 · 4 revisions

Both Launcher and Admin Tool are localizable.

Launcher localization

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.

Clone this wiki locally