aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Notifications
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Server.Implementations/Notifications')
-rw-r--r--MediaBrowser.Server.Implementations/Notifications/CoreNotificationTypes.cs17
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");