Archived
1
0

Refactored player. Refactored changelog system. Players isn't localized

Related Work Items: #161, #211, #238
This commit is contained in:
Michael Gordeev
2019-01-02 23:44:40 +03:00
parent cb5c3c7c7f
commit 088d85ddb9
69 changed files with 3871 additions and 707 deletions
+6 -3
View File
@@ -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;
}