/// <summary> /// This method prints the default check with respect to your assembly name, MessageLanguage and individual user settings /// </summary> public void Notify() { if (notified) { return; } notified = true; // ex. "You are using the latest version of [NAME]" Comms.Print( Translations.GetTranslation( ("updater_" + (Success ? GitVersion == LocalVersion ? "updated" : "available" : "error")).Replace( "[NAME]", aName), MessageLanguage)); }
/// <summary> /// This method prints the default check with respect to your assembly name, MessageLanguage and individual user settings /// </summary> public void Notify() { string key; if (!this.Success) { key = "updater_failure"; } else if (this.IsUpdated) { key = "updater_updated"; } else { key = "updater_outdated"; } Comms.Print(Creator.MainMenu.GetTranslation(key).Replace("[NAME]", this.assemblyName)); }
public void Print(string translationKey) { Comms.Print(this.GetTranslation(translationKey)); }