From e9fb806478e974b200b54f8acff5eb09bdef4c32 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 28 Apr 2014 23:56:20 -0400 Subject: 3.0.5231.40980 --- .../Notifications/CoreNotificationTypes.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'MediaBrowser.Server.Implementations/Notifications') diff --git a/MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs b/MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs index cfda23a65..deb82c7c4 100644 --- a/MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs +++ b/MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs @@ -45,6 +45,13 @@ namespace MediaBrowser.Server.Implementations.Notifications Variables = new List{"Name", "Version"} }, + new NotificationTypeInfo + { + Type = NotificationType.PluginError.ToString(), + DefaultTitle = "{Name} has encountered an error: {Message}", + Variables = new List{"Name", "Message"} + }, + new NotificationTypeInfo { Type = NotificationType.PluginUninstalled.ToString(), @@ -115,7 +122,11 @@ namespace MediaBrowser.Server.Implementations.Notifications Update(type); } - return knownTypes.OrderBy(i => i.Category).ThenBy(i => i.Name); + var systemName = _localization.GetLocalizedString("CategorySystem"); + + return knownTypes.OrderByDescending(i => string.Equals(i.Category, systemName, StringComparison.OrdinalIgnoreCase)) + .ThenBy(i => i.Category) + .ThenBy(i => i.Name); } private void Update(NotificationTypeInfo note) @@ -128,6 +139,10 @@ namespace MediaBrowser.Server.Implementations.Notifications { note.Category = _localization.GetLocalizedString("CategoryUser"); } + else if (note.Type.IndexOf("Plugin", StringComparison.OrdinalIgnoreCase) != -1) + { + note.Category = _localization.GetLocalizedString("CategoryPlugin"); + } else { note.Category = _localization.GetLocalizedString("CategorySystem"); -- cgit v1.2.3