diff --git a/Logic/App_GlobalResources/Logic.Swarm.DashboardTodos.Designer.cs b/Logic/App_GlobalResources/Logic.Swarm.DashboardTodos.Designer.cs index 33a783c5..8b39e209 100644 --- a/Logic/App_GlobalResources/Logic.Swarm.DashboardTodos.Designer.cs +++ b/Logic/App_GlobalResources/Logic.Swarm.DashboardTodos.Designer.cs @@ -8,7 +8,7 @@ // //------------------------------------------------------------------------------ -namespace Swarmops.Logic.Swarm.App_LocalResources { +namespace Swarmops.Logic.App_GlobalResources { using System; @@ -39,7 +39,7 @@ namespace Swarmops.Logic.Swarm.App_LocalResources { internal static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Swarmops.Logic.Swarm.App_LocalResources.Logic.Swarm.DashboardTodos", typeof(Logic_Swarm_DashboardTodos).Assembly); + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Swarmops.Logic.App_GlobalResources.Logic.Swarm.DashboardTodos", typeof(Logic_Swarm_DashboardTodos).Assembly); resourceMan = temp; } return resourceMan; diff --git a/Logic/App_GlobalResources/Logic.Test.Designer.cs b/Logic/App_GlobalResources/Logic.Test.Designer.cs index f080f607..be03186b 100644 --- a/Logic/App_GlobalResources/Logic.Test.Designer.cs +++ b/Logic/App_GlobalResources/Logic.Test.Designer.cs @@ -61,7 +61,7 @@ namespace Swarmops.Logic.App_GlobalResources { } /// - /// Looks up a localized string similar to Test. + /// Looks up a localized string similar to Test String. /// internal static string TestString { get { diff --git a/Logic/App_GlobalResources/Logic.Test.resx b/Logic/App_GlobalResources/Logic.Test.resx index 752d7aaf..78698f90 100644 --- a/Logic/App_GlobalResources/Logic.Test.resx +++ b/Logic/App_GlobalResources/Logic.Test.resx @@ -118,6 +118,6 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Test + Test String \ No newline at end of file diff --git a/Logic/Communications/Transmission/App_LocalResources/NotificationPayload.Designer.cs b/Logic/Communications/Transmission/App_LocalResources/NotificationPayload.Designer.cs deleted file mode 100644 index d9a12537..00000000 --- a/Logic/Communications/Transmission/App_LocalResources/NotificationPayload.Designer.cs +++ /dev/null @@ -1,122 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.1008 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Swarmops.Logic.Communications.Transmission.App_LocalResources { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class NotificationPayload { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal NotificationPayload() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Swarmops.Logic.Communications.Transmission.App_LocalResources.NotificationPayload" + - "", typeof(NotificationPayload).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to [ConcernedPersonName] has requested a cash advance of [CurrencyCode] [BudgetAmountFloat] for the purpose of [RequestReason]. This money is part of your budget, [BudgetName]. - /// - ///Please log on to Swarmops at [SystemUrl] to attest or deny.. - /// - internal static string CashAdvance_Requested_Body { - get { - return ResourceManager.GetString("CashAdvance_Requested_Body", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to [OrganizationName] Cash Advance Requested. - /// - internal static string CashAdvance_Requested_Subject { - get { - return ResourceManager.GetString("CashAdvance_Requested_Subject", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to An unhandled exception was thrown in Swarmops: - /// - ///[EmbeddedPreformattedText]. - /// - internal static string System_Exception_Body { - get { - return ResourceManager.GetString("System_Exception_Body", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Swarmops EXCEPTION!. - /// - internal static string System_Exception_Subject { - get { - return ResourceManager.GetString("System_Exception_Subject", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Swarmops Backend version [SwarmopsVersion] on host [HostName] has successfully started and connected to database and notification frameworks.. - /// - internal static string System_Startup_Body { - get { - return ResourceManager.GetString("System_Startup_Body", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Swarmops Backend operational. - /// - internal static string System_Startup_Subject { - get { - return ResourceManager.GetString("System_Startup_Subject", resourceCulture); - } - } - } -} diff --git a/Logic/Communications/Transmission/App_LocalResources/NotificationPayload.resx b/Logic/Communications/Transmission/App_LocalResources/NotificationPayload.resx deleted file mode 100644 index 55c63abb..00000000 --- a/Logic/Communications/Transmission/App_LocalResources/NotificationPayload.resx +++ /dev/null @@ -1,142 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - [ConcernedPersonName] has requested a cash advance of [CurrencyCode] [BudgetAmountFloat] for the purpose of [RequestReason]. This money is part of your budget, [BudgetName]. - -Please log on to Swarmops at [SystemUrl] to attest or deny. - - - [OrganizationName] Cash Advance Requested - - - An unhandled exception was thrown in Swarmops: - -[EmbeddedPreformattedText] - - - Swarmops EXCEPTION! - - - Swarmops Backend version [SwarmopsVersion] on host [HostName] has successfully started and connected to database and notification frameworks. - - - Swarmops Backend operational - - \ No newline at end of file diff --git a/Logic/Communications/Transmission/NotificationPayload.cs b/Logic/Communications/Transmission/NotificationPayload.cs index 03d28c3e..899cff4e 100644 --- a/Logic/Communications/Transmission/NotificationPayload.cs +++ b/Logic/Communications/Transmission/NotificationPayload.cs @@ -37,14 +37,14 @@ namespace Swarmops.Logic.Communications.Transmission { // TODO: Pick culture - return ExpandMacros(App_LocalResources.NotificationPayload.ResourceManager.GetString(this.SubjectResource)); + return ExpandMacros(App_GlobalResources.Logic_Communications_Transmission_NotificationPayload.ResourceManager.GetString(this.SubjectResource)); } public string GetBody() { // TODO: Pick culture - return ExpandMacros(App_LocalResources.NotificationPayload.ResourceManager.GetString(this.BodyResource)); + return ExpandMacros(App_GlobalResources.Logic_Communications_Transmission_NotificationPayload.ResourceManager.GetString(this.BodyResource)); } public string ExpandMacros (string input) diff --git a/Logic/Logic.csproj b/Logic/Logic.csproj index 3100d679..cfea1404 100644 --- a/Logic/Logic.csproj +++ b/Logic/Logic.csproj @@ -65,7 +65,12 @@ + True + True Logic.Swarm.DashboardTodos.resx + + + Logic.Communications.Transmission.NotificationPayload.resx True True @@ -74,11 +79,6 @@ True Logic.Test.resx - - Logic.Communications.Transmission.NotificationPayload.resx - True - True - @@ -87,11 +87,6 @@ - - True - True - NotificationPayload.resx - @@ -256,11 +251,6 @@ - - True - True - Logic.Swarm.DashboardTodos.resx - @@ -318,17 +308,13 @@ ResXFileCodeGenerator Logic.Swarm.DashboardTodos.Designer.cs - - ResXFileCodeGenerator - Logic.Test.Designer.cs - ResXFileCodeGenerator Logic.Communications.Transmission.NotificationPayload.Designer.cs - + ResXFileCodeGenerator - NotificationPayload.Designer.cs + Logic.Test.Designer.cs Designer @@ -343,10 +329,6 @@ Authentication.sv-SE.Designer.cs Designer - - ResXFileCodeGenerator - Logic.Swarm.DashboardTodos.Designer.cs - \ No newline at end of file diff --git a/Logic/Swarm/App_LocalResources/Logic.Swarm.DashboardTodos.Designer.cs b/Logic/Swarm/App_LocalResources/Logic.Swarm.DashboardTodos.Designer.cs deleted file mode 100644 index 33a783c5..00000000 --- a/Logic/Swarm/App_LocalResources/Logic.Swarm.DashboardTodos.Designer.cs +++ /dev/null @@ -1,153 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.1008 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Swarmops.Logic.Swarm.App_LocalResources { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Logic_Swarm_DashboardTodos { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Logic_Swarm_DashboardTodos() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Swarmops.Logic.Swarm.App_LocalResources.Logic.Swarm.DashboardTodos", typeof(Logic_Swarm_DashboardTodos).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to Attest cash advances {0}. - /// - internal static string Attest_CashAdvance_Many { - get { - return ResourceManager.GetString("Attest_CashAdvance_Many", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Attest cash advance #{0}. - /// - internal static string Attest_CashAdvance_One { - get { - return ResourceManager.GetString("Attest_CashAdvance_One", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Attest expense claims {0}. - /// - internal static string Attest_ExpenseClaim_Many { - get { - return ResourceManager.GetString("Attest_ExpenseClaim_Many", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Attest expense claim #{0}. - /// - internal static string Attest_ExpenseClaim_One { - get { - return ResourceManager.GetString("Attest_ExpenseClaim_One", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Settle {0} payouts. - /// - internal static string Payout_Many { - get { - return ResourceManager.GetString("Payout_Many", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Settle one payout. - /// - internal static string Payout_One { - get { - return ResourceManager.GetString("Payout_One", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Settle {0} overdue payouts. - /// - internal static string Payout_Overdue_Many { - get { - return ResourceManager.GetString("Payout_Overdue_Many", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Settle one overdue payout. - /// - internal static string Payout_Overdue_One { - get { - return ResourceManager.GetString("Payout_Overdue_One", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Settle {0} urgent payouts. - /// - internal static string Payout_Urgent_Many { - get { - return ResourceManager.GetString("Payout_Urgent_Many", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Settle one urgent payout. - /// - internal static string Payout_Urgent_One { - get { - return ResourceManager.GetString("Payout_Urgent_One", resourceCulture); - } - } - } -} diff --git a/Logic/Swarm/App_LocalResources/Logic.Swarm.DashboardTodos.resx b/Logic/Swarm/App_LocalResources/Logic.Swarm.DashboardTodos.resx deleted file mode 100644 index 88f5a054..00000000 --- a/Logic/Swarm/App_LocalResources/Logic.Swarm.DashboardTodos.resx +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Attest cash advances {0} - - - Attest cash advance #{0} - - - Attest expense claims {0} - - - Attest expense claim #{0} - - - Settle {0} payouts - Instead of "Pay out payout". That sounds too repetitititive. - - - Settle one payout - - - Settle {0} overdue payouts - - - Settle one overdue payout - - - Settle {0} urgent payouts - - - Settle one urgent payout - - \ No newline at end of file diff --git a/Logic/Swarm/DashboardTodos.cs b/Logic/Swarm/DashboardTodos.cs index 34cac18e..b1fa88c1 100644 --- a/Logic/Swarm/DashboardTodos.cs +++ b/Logic/Swarm/DashboardTodos.cs @@ -73,11 +73,11 @@ namespace Swarmops.Logic.Swarm if (expenseClaimIds.Count > 1) { - todo.Description = String.Format(App_LocalResources.DashboardTodos.Attest_ExpenseClaim_Many, Formatting.GenerateRangeString(expenseClaimIds)); + todo.Description = String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Attest_ExpenseClaim_Many, Formatting.GenerateRangeString(expenseClaimIds)); } else { - todo.Description = String.Format(App_LocalResources.DashboardTodos.Attest_ExpenseClaim_One, expenseClaimIds[0]); + todo.Description = String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Attest_ExpenseClaim_One, expenseClaimIds[0]); } todo.Icon = "/Images/PageIcons/iconshock-stamped-paper-16px.png"; @@ -130,11 +130,11 @@ namespace Swarmops.Logic.Swarm if (cashAdvanceIds.Count > 1) { - todo.Description = String.Format(App_LocalResources.DashboardTodos.Attest_CashAdvance_Many, Formatting.GenerateRangeString(cashAdvanceIds)); + todo.Description = String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Attest_CashAdvance_Many, Formatting.GenerateRangeString(cashAdvanceIds)); } else { - todo.Description = String.Format(App_LocalResources.DashboardTodos.Attest_CashAdvance_One, cashAdvanceIds[0]); + todo.Description = String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Attest_CashAdvance_One, cashAdvanceIds[0]); } todo.Icon = "/Images/PageIcons/iconshock-stamped-paper-16px.png"; @@ -189,18 +189,18 @@ namespace Swarmops.Logic.Swarm if (payoutCount > 0) { todoNormal.Description = payoutCount > 1 - ? String.Format(App_LocalResources.DashboardTodos.Payout_Many, + ? String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Many, payoutCount) - : App_LocalResources.DashboardTodos.Payout_One; + : App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_One; this.Add(todoNormal); } if (overduePayoutCount > 0) { todoOverdue.Description = overduePayoutCount > 1 - ? String.Format(App_LocalResources.DashboardTodos.Payout_Overdue_Many, + ? String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Overdue_Many, payoutCount) - : App_LocalResources.DashboardTodos.Payout_Overdue_One; + : App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Overdue_One; todoOverdue.Urgency = TodoUrgency.Red; this.Add(todoOverdue); } @@ -208,9 +208,9 @@ namespace Swarmops.Logic.Swarm if (urgentPayoutCount > 0) { todoUrgent.Description = overduePayoutCount > 1 - ? String.Format(App_LocalResources.DashboardTodos.Payout_Urgent_Many, + ? String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Urgent_Many, payoutCount) - : App_LocalResources.DashboardTodos.Payout_Urgent_One; + : App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Urgent_One; todoUrgent.Urgency = TodoUrgency.Yellow; this.Add(todoUrgent); }