Refactored player. Refactored changelog system. Players isn't localized
Related Work Items: #161, #211, #238
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
using Windows.ApplicationModel.Resources;
|
||||
|
||||
namespace FoxTube.Classes
|
||||
{
|
||||
@@ -13,6 +14,8 @@ namespace FoxTube.Classes
|
||||
public string Subject { get; set; }
|
||||
public string Content { get; set; }
|
||||
public string Id { get; set; }
|
||||
|
||||
private ResourceLoader resources = ResourceLoader.GetForCurrentView("Inbox");
|
||||
|
||||
public string Icon
|
||||
{
|
||||
@@ -29,9 +32,9 @@ namespace FoxTube.Classes
|
||||
get
|
||||
{
|
||||
if (Type == InboxItemType.PatchNote)
|
||||
return "Patch note";
|
||||
return resources.GetString("changelog");
|
||||
else
|
||||
return "Developer's message";
|
||||
return resources.GetString("dev");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,7 +43,7 @@ namespace FoxTube.Classes
|
||||
get
|
||||
{
|
||||
if (Type == InboxItemType.PatchNote)
|
||||
return $"What's new in v{Id}";
|
||||
return $"{resources.GetString("whatsnew")}{Id}";
|
||||
else
|
||||
return Subject;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user