3.0.5231.40980

This commit is contained in:
Luke Pulverenti
2014-04-28 23:56:20 -04:00
parent 0f4c28c120
commit e9fb806478
38 changed files with 1197 additions and 372 deletions

View File

@@ -45,6 +45,13 @@ namespace MediaBrowser.Server.Implementations.Notifications
Variables = new List<string>{"Name", "Version"}
},
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(),
@@ -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");