diff options
| author | william341 <[email protected]> | 2017-06-24 10:53:22 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-06-24 10:53:22 -0700 |
| commit | bae34710cf86240b2744196c4b95e569fb161c90 (patch) | |
| tree | d5ff99e5cc8f3db8a9236b247886866601b915b9 /ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs | |
| parent | b4b19e7a4d203b58537f5b98214296ab52c49b2d (diff) | |
| parent | 1661f9a5bd46dbd7d2586787c55bfc407c027629 (diff) | |
| download | shiftos_thereturn-bae34710cf86240b2744196c4b95e569fb161c90.tar.gz shiftos_thereturn-bae34710cf86240b2744196c4b95e569fb161c90.tar.bz2 shiftos_thereturn-bae34710cf86240b2744196c4b95e569fb161c90.zip | |
Merge pull request #5 from shiftos-game/master
merge
Diffstat (limited to 'ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs')
| -rw-r--r-- | ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs b/ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs index c9b6f64..d14f1fa 100644 --- a/ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs +++ b/ShiftOS.WinForms/ShiftnetSites/AppscapeMain.cs @@ -48,8 +48,8 @@ namespace ShiftOS.WinForms.ShiftnetSites if (upgrades.Count() > 0) foreach (var upg in upgrades) { - if (!cats.Contains(upg.Category)) - cats.Add(upg.Category); + if (!cats.Contains(Localization.Parse(upg.Category))) + cats.Add(Localization.Parse(upg.Category)); } } catch { } @@ -63,9 +63,9 @@ namespace ShiftOS.WinForms.ShiftnetSites pnlappslist.Controls.Clear(); pnlappslist.Show(); pnlappslist.BringToFront(); - Category = cat; + Category = Localization.Parse(cat); var upgrades = GetAllInCategory(); - lbtitle.Text = cat; + lbtitle.Text = Localization.Parse(cat); if(upgrades.Length == 0) { var err = new Label(); @@ -282,7 +282,7 @@ namespace ShiftOS.WinForms.ShiftnetSites if (Category == "All") return upgrades.ToArray(); else - return upgrades.Where(x => x.Category == Category).ToArray(); + return upgrades.Where(x => Localization.Parse(x.Category) == Localization.Parse(Category)).ToArray(); } public void Setup() @@ -360,7 +360,7 @@ namespace ShiftOS.WinForms /// </summary> public class AppscapeEntryAttribute : RequiresUpgradeAttribute { - public AppscapeEntryAttribute(string name, string description, int downloadSize, ulong cost, string dependencies = "", string category = "Misc") : base(name.ToLower().Replace(' ', '_')) + public AppscapeEntryAttribute(string id, string name, string description, int downloadSize, ulong cost, string dependencies = "", string category = "Misc") : base(id) { Name = name; Description = description; |
