diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-28 23:56:20 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-28 23:56:20 -0400 |
| commit | e9fb806478e974b200b54f8acff5eb09bdef4c32 (patch) | |
| tree | 6b83c4728d93eb4bc26331d946f500243f5a1f24 /MediaBrowser.Server.Implementations/Notifications | |
| parent | 0f4c28c120751e1cf6e0562ef0445c7fa46cf0a4 (diff) | |
3.0.5231.40980
Diffstat (limited to 'MediaBrowser.Server.Implementations/Notifications')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs | 17 |
1 files changed, 16 insertions, 1 deletions
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 @@ -47,6 +47,13 @@ namespace MediaBrowser.Server.Implementations.Notifications new NotificationTypeInfo { + Type = NotificationType.PluginError.ToString(), + DefaultTitle = "{Name} has encountered an error: {Message}", + Variables = new List<string>{"Name", "Message"} + }, + + new NotificationTypeInfo + { Type = NotificationType.PluginUninstalled.ToString(), DefaultTitle = "{Name} was uninstalled.", Variables = new List<string>{"Name", "Version"} @@ -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"); |
