diff --git a/Logic/App_GlobalResources/ParticipantTitles.Designer.cs b/Logic/App_GlobalResources/ParticipantTitles.Designer.cs new file mode 100644 index 00000000..53b3469d --- /dev/null +++ b/Logic/App_GlobalResources/ParticipantTitles.Designer.cs @@ -0,0 +1,927 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.18444 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Swarmops.Logic.App_GlobalResources { + 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 ParticipantTitles { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal ParticipantTitles() { + } + + /// + /// 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.App_GlobalResources.ParticipantTitles", typeof(ParticipantTitles).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 Activist Swarm. + /// + internal static string Title_Activist_Corps { + get { + return ResourceManager.GetString("Title_Activist_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Activist. + /// + internal static string Title_Activist_Female { + get { + return ResourceManager.GetString("Title_Activist_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Activist. + /// + internal static string Title_Activist_Generic { + get { + return ResourceManager.GetString("Title_Activist_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Activist. + /// + internal static string Title_Activist_Male { + get { + return ResourceManager.GetString("Title_Activist_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Activists. + /// + internal static string Title_Activist_Plural { + get { + return ResourceManager.GetString("Title_Activist_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Activistship. + /// + internal static string Title_Activist_Ship { + get { + return ResourceManager.GetString("Title_Activist_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Agent Corps. + /// + internal static string Title_Agent_Corps { + get { + return ResourceManager.GetString("Title_Agent_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Agent. + /// + internal static string Title_Agent_Female { + get { + return ResourceManager.GetString("Title_Agent_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Agent. + /// + internal static string Title_Agent_Generic { + get { + return ResourceManager.GetString("Title_Agent_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Agent. + /// + internal static string Title_Agent_Male { + get { + return ResourceManager.GetString("Title_Agent_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Agents. + /// + internal static string Title_Agent_Plural { + get { + return ResourceManager.GetString("Title_Agent_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Agency. + /// + internal static string Title_Agent_Ship { + get { + return ResourceManager.GetString("Title_Agent_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ambassador Corps. + /// + internal static string Title_Ambassador_Corps { + get { + return ResourceManager.GetString("Title_Ambassador_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ambassador. + /// + internal static string Title_Ambassador_Female { + get { + return ResourceManager.GetString("Title_Ambassador_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ambassador. + /// + internal static string Title_Ambassador_Generic { + get { + return ResourceManager.GetString("Title_Ambassador_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ambassador. + /// + internal static string Title_Ambassador_Male { + get { + return ResourceManager.GetString("Title_Ambassador_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ambassadors. + /// + internal static string Title_Ambassador_Plural { + get { + return ResourceManager.GetString("Title_Ambassador_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Ambassadorship. + /// + internal static string Title_Ambassador_Ship { + get { + return ResourceManager.GetString("Title_Ambassador_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Citizens. + /// + internal static string Title_Citizen_Corps { + get { + return ResourceManager.GetString("Title_Citizen_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Citizen. + /// + internal static string Title_Citizen_Female { + get { + return ResourceManager.GetString("Title_Citizen_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Citizen. + /// + internal static string Title_Citizen_Generic { + get { + return ResourceManager.GetString("Title_Citizen_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Citizen. + /// + internal static string Title_Citizen_Male { + get { + return ResourceManager.GetString("Title_Citizen_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Citizens. + /// + internal static string Title_Citizen_Plural { + get { + return ResourceManager.GetString("Title_Citizen_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Citizenship. + /// + internal static string Title_Citizen_Ship { + get { + return ResourceManager.GetString("Title_Citizen_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Corps. + /// + internal static string Title_Conscript_Corps { + get { + return ResourceManager.GetString("Title_Conscript_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Conscript. + /// + internal static string Title_Conscript_Female { + get { + return ResourceManager.GetString("Title_Conscript_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Conscript. + /// + internal static string Title_Conscript_Generic { + get { + return ResourceManager.GetString("Title_Conscript_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Conscript. + /// + internal static string Title_Conscript_Male { + get { + return ResourceManager.GetString("Title_Conscript_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Conscripts. + /// + internal static string Title_Conscript_Plural { + get { + return ResourceManager.GetString("Title_Conscript_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Conscripthood. + /// + internal static string Title_Conscript_Ship { + get { + return ResourceManager.GetString("Title_Conscript_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Contributor Corps. + /// + internal static string Title_Contributor_Corps { + get { + return ResourceManager.GetString("Title_Contributor_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Contributor. + /// + internal static string Title_Contributor_Female { + get { + return ResourceManager.GetString("Title_Contributor_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Contributor. + /// + internal static string Title_Contributor_Generic { + get { + return ResourceManager.GetString("Title_Contributor_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Contributor. + /// + internal static string Title_Contributor_Male { + get { + return ResourceManager.GetString("Title_Contributor_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Contributors. + /// + internal static string Title_Contributor_Plural { + get { + return ResourceManager.GetString("Title_Contributor_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Contributorship. + /// + internal static string Title_Contributor_Ship { + get { + return ResourceManager.GetString("Title_Contributor_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Customers. + /// + internal static string Title_Customer_Corps { + get { + return ResourceManager.GetString("Title_Customer_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Customer. + /// + internal static string Title_Customer_Female { + get { + return ResourceManager.GetString("Title_Customer_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Customer. + /// + internal static string Title_Customer_Generic { + get { + return ResourceManager.GetString("Title_Customer_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Customer. + /// + internal static string Title_Customer_Male { + get { + return ResourceManager.GetString("Title_Customer_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Customers. + /// + internal static string Title_Customer_Plural { + get { + return ResourceManager.GetString("Title_Customer_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Custom. + /// + internal static string Title_Customer_Ship { + get { + return ResourceManager.GetString("Title_Customer_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Staff. + /// + internal static string Title_Employee_Corps { + get { + return ResourceManager.GetString("Title_Employee_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Employee. + /// + internal static string Title_Employee_Female { + get { + return ResourceManager.GetString("Title_Employee_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Employee. + /// + internal static string Title_Employee_Generic { + get { + return ResourceManager.GetString("Title_Employee_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Employee. + /// + internal static string Title_Employee_Male { + get { + return ResourceManager.GetString("Title_Employee_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Employees. + /// + internal static string Title_Employee_Plural { + get { + return ResourceManager.GetString("Title_Employee_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Employment. + /// + internal static string Title_Employee_Ship { + get { + return ResourceManager.GetString("Title_Employee_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Member Corps. + /// + internal static string Title_Member_Corps { + get { + return ResourceManager.GetString("Title_Member_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Member. + /// + internal static string Title_Member_Female { + get { + return ResourceManager.GetString("Title_Member_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Member. + /// + internal static string Title_Member_Generic { + get { + return ResourceManager.GetString("Title_Member_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Member. + /// + internal static string Title_Member_Male { + get { + return ResourceManager.GetString("Title_Member_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Members. + /// + internal static string Title_Member_Plural { + get { + return ResourceManager.GetString("Title_Member_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Membership. + /// + internal static string Title_Member_Ship { + get { + return ResourceManager.GetString("Title_Member_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operatives. + /// + internal static string Title_Operative_Corps { + get { + return ResourceManager.GetString("Title_Operative_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operative. + /// + internal static string Title_Operative_Female { + get { + return ResourceManager.GetString("Title_Operative_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operative. + /// + internal static string Title_Operative_Generic { + get { + return ResourceManager.GetString("Title_Operative_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operative. + /// + internal static string Title_Operative_Male { + get { + return ResourceManager.GetString("Title_Operative_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operatives. + /// + internal static string Title_Operative_Plural { + get { + return ResourceManager.GetString("Title_Operative_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Operativehood. + /// + internal static string Title_Operative_Ship { + get { + return ResourceManager.GetString("Title_Operative_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Forces. + /// + internal static string Title_Person_Corps { + get { + return ResourceManager.GetString("Title_Person_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Person. + /// + internal static string Title_Person_Female { + get { + return ResourceManager.GetString("Title_Person_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Person. + /// + internal static string Title_Person_Generic { + get { + return ResourceManager.GetString("Title_Person_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Person. + /// + internal static string Title_Person_Male { + get { + return ResourceManager.GetString("Title_Person_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to People. + /// + internal static string Title_Person_Plural { + get { + return ResourceManager.GetString("Title_Person_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Personhood. + /// + internal static string Title_Person_Ship { + get { + return ResourceManager.GetString("Title_Person_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Corps. + /// + internal static string Title_Regular_Corps { + get { + return ResourceManager.GetString("Title_Regular_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Regular. + /// + internal static string Title_Regular_Female { + get { + return ResourceManager.GetString("Title_Regular_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Regular. + /// + internal static string Title_Regular_Generic { + get { + return ResourceManager.GetString("Title_Regular_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Regular. + /// + internal static string Title_Regular_Male { + get { + return ResourceManager.GetString("Title_Regular_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Regulars. + /// + internal static string Title_Regular_Plural { + get { + return ResourceManager.GetString("Title_Regular_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Regularhood. + /// + internal static string Title_Regular_Ship { + get { + return ResourceManager.GetString("Title_Regular_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Residents. + /// + internal static string Title_Resident_Corps { + get { + return ResourceManager.GetString("Title_Resident_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resident. + /// + internal static string Title_Resident_Female { + get { + return ResourceManager.GetString("Title_Resident_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resident. + /// + internal static string Title_Resident_Generic { + get { + return ResourceManager.GetString("Title_Resident_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Resident. + /// + internal static string Title_Resident_Male { + get { + return ResourceManager.GetString("Title_Resident_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Residents. + /// + internal static string Title_Resident_Plural { + get { + return ResourceManager.GetString("Title_Resident_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Residency. + /// + internal static string Title_Resident_Ship { + get { + return ResourceManager.GetString("Title_Resident_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Crew. + /// + internal static string Title_Sailor_Corps { + get { + return ResourceManager.GetString("Title_Sailor_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Seaman. + /// + internal static string Title_Sailor_Female { + get { + return ResourceManager.GetString("Title_Sailor_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Seaman. + /// + internal static string Title_Sailor_Generic { + get { + return ResourceManager.GetString("Title_Sailor_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Seaman. + /// + internal static string Title_Sailor_Male { + get { + return ResourceManager.GetString("Title_Sailor_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Seamen. + /// + internal static string Title_Sailor_Plural { + get { + return ResourceManager.GetString("Title_Sailor_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Seamanship. + /// + internal static string Title_Sailor_Ship { + get { + return ResourceManager.GetString("Title_Sailor_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Salesforce. + /// + internal static string Title_Salesperson_Corps { + get { + return ResourceManager.GetString("Title_Salesperson_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Saleswoman. + /// + internal static string Title_Salesperson_Female { + get { + return ResourceManager.GetString("Title_Salesperson_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Salesperson. + /// + internal static string Title_Salesperson_Generic { + get { + return ResourceManager.GetString("Title_Salesperson_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Salesman. + /// + internal static string Title_Salesperson_Male { + get { + return ResourceManager.GetString("Title_Salesperson_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Salespeople. + /// + internal static string Title_Salesperson_Plural { + get { + return ResourceManager.GetString("Title_Salesperson_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Sales role. + /// + internal static string Title_Salesperson_Ship { + get { + return ResourceManager.GetString("Title_Salesperson_Ship", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Supporters. + /// + internal static string Title_Supporter_Corps { + get { + return ResourceManager.GetString("Title_Supporter_Corps", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Supporter. + /// + internal static string Title_Supporter_Female { + get { + return ResourceManager.GetString("Title_Supporter_Female", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Supporter. + /// + internal static string Title_Supporter_Generic { + get { + return ResourceManager.GetString("Title_Supporter_Generic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Supporter. + /// + internal static string Title_Supporter_Male { + get { + return ResourceManager.GetString("Title_Supporter_Male", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Supporters. + /// + internal static string Title_Supporter_Plural { + get { + return ResourceManager.GetString("Title_Supporter_Plural", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Supportership. + /// + internal static string Title_Supporter_Ship { + get { + return ResourceManager.GetString("Title_Supporter_Ship", resourceCulture); + } + } + } +} diff --git a/Logic/App_GlobalResources/ParticipantTitles.resx b/Logic/App_GlobalResources/ParticipantTitles.resx new file mode 100644 index 00000000..16bfd30b --- /dev/null +++ b/Logic/App_GlobalResources/ParticipantTitles.resx @@ -0,0 +1,431 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Activist Swarm + + + Activist + Female singular + + + Activist + Gender neutral + + + Activist + Male singular + + + Activists + Gender neutral plural + + + Activistship + + + Agent Corps + + + Agent + + + Agent + + + Agent + + + Agents + + + Agency + + + Ambassador Corps + + + Ambassador + + + Ambassador + + + Ambassador + + + Ambassadors + + + Ambassadorship + + + Citizens + + + Citizen + Female singular + + + Citizen + Gender neutral + + + Citizen + Male singular + + + Citizens + Gender neutral plural + + + Citizenship + + + Corps + + + Conscript + + + Conscript + + + Conscript + + + Conscripts + + + Conscripthood + + + Contributor Corps + + + Contributor + + + Contributor + + + Contributor + + + Contributors + + + Contributorship + + + Customers + + + Customer + Female singular + + + Customer + Gender neutral + + + Customer + Male singular + + + Customers + Gender neutral plural + + + Custom + + + Staff + + + Employee + + + Employee + + + Employee + + + Employees + + + Employment + + + Member Corps + + + Member + + + Member + + + Member + + + Members + + + Membership + + + Operatives + + + Operative + + + Operative + + + Operative + + + Operatives + + + Operativehood + + + Forces + + + Person + + + Person + + + Person + + + People + + + Personhood + + + Corps + "Regular" in the military soldier sense, not "regular customer" + + + Regular + "Regular" in the military soldier sense, not "regular customer" + + + Regular + "Regular" in the military soldier sense, not "regular customer" + + + Regular + "Regular" in the military soldier sense, not "regular customer" + + + Regulars + "Regular" in the military soldier sense, not "regular customer" + + + Regularhood + "Regular" in the military soldier sense, not "regular customer" + + + Residents + + + Resident + + + Resident + + + Resident + + + Residents + + + Residency + + + Crew + + + Seaman + ("Seaman" is a Navy rank, not a genderized title) + + + Seaman + ("Seaman" is a Navy rank, not a genderized title) + + + Seaman + ("Seaman" is a Navy rank, not a genderized title) + + + Seamen + ("Seaman" is a Navy rank, not a genderized title) + + + Seamanship + ("Seaman" is a Navy rank, not a genderized title) + + + Salesforce + + + Saleswoman + + + Salesperson + + + Salesman + + + Salespeople + + + Sales role + + + Supporters + + + Supporter + + + Supporter + + + Supporter + + + Supporters + + + Supportership + + \ No newline at end of file diff --git a/Logic/Logic.csproj b/Logic/Logic.csproj index cdbe7b62..2c2a5dcb 100644 --- a/Logic/Logic.csproj +++ b/Logic/Logic.csproj @@ -85,6 +85,11 @@ True True + + True + True + ParticipantTitles.resx + @@ -301,6 +306,7 @@ + @@ -376,6 +382,10 @@ + + ResXFileCodeGenerator + ParticipantTitles.Designer.cs + diff --git a/Logic/Structure/Organization.cs b/Logic/Structure/Organization.cs index 0f95b2f1..dcffcfc0 100644 --- a/Logic/Structure/Organization.cs +++ b/Logic/Structure/Organization.cs @@ -252,20 +252,20 @@ namespace Swarmops.Logic.Structure } } - public string RegularLabel + public ParticipantTitle RegularLabel { get { string optionalData = OptionalData[ObjectOptionalDataType.OrgRegularLabel]; if (string.IsNullOrEmpty(optionalData)) { - RegularLabel = "Member"; - return "Member"; // Legacy + RegularLabel = ParticipantTitle.Member; + return ParticipantTitle.Member; // Legacy } - return optionalData; + return (ParticipantTitle)(Enum.Parse(typeof(ParticipantTitle),optionalData)); } - set { OptionalData[ObjectOptionalDataType.OrgRegularLabel] = value; } + set { OptionalData[ObjectOptionalDataType.OrgRegularLabel] = value.ToString(); } } public string ActivistLabel diff --git a/Logic/Swarm/ParticipantTitle.cs b/Logic/Swarm/ParticipantTitle.cs new file mode 100644 index 00000000..4f4bb9b5 --- /dev/null +++ b/Logic/Swarm/ParticipantTitle.cs @@ -0,0 +1,60 @@ +using System; +using Swarmops.Basic.Enums; +using Swarmops.Logic.App_GlobalResources; + +namespace Swarmops.Logic.Swarm +{ + public class Participant + { + public static string Localized (ParticipantTitle title, TitleVariant variant) + { + return ParticipantTitles.ResourceManager.GetString ("Title_" + title + "_" + variant); + } + + public static string Localized (ParticipantTitle title, PersonGender gender) + { + string genderString = gender.ToString(); + if (gender == PersonGender.Unknown) + { + genderString = "Generic"; + } + return Localized (title, genderString); + } + + public static string Localized (ParticipantTitle title, string variantString) + { + return Localized (title, (TitleVariant) (Enum.Parse (typeof (TitleVariant), variantString))); + } + } + + public enum TitleVariant + { + Unknown = 0, + Corps, + Generic, + Plural, + Male, + Female, + Ship + } + + public enum ParticipantTitle + { + Unknown = 0, + Activist, + Agent, + Ambassador, + Citizen, + Conscript, + Contributor, + Customer, + Employee, + Member, + Operative, + Person, + Regular, + Resident, + Sailor, + Salesperson + }; +} \ No newline at end of file diff --git a/Site5/App_GlobalResources/Global.resx b/Site5/App_GlobalResources/Global.resx index 50c01373..2593d568 100644 --- a/Site5/App_GlobalResources/Global.resx +++ b/Site5/App_GlobalResources/Global.resx @@ -411,54 +411,6 @@ On On (as opposed to Off) - - Customers - Gender neutral plural - - - Citizens - Gender neutral plural - - - Activists - Gender neutral plural - - - Customer - Female singular - - - Citizen - Female singular - - - Activist - Female singular - - - Customer - Gender neutral - - - Citizen - Gender neutral - - - Activist - Gender neutral - - - Customer - Male singular - - - Citizen - Male singular - - - Activist - Male singular - Commercial A commercial organization (for-profit enterprise) @@ -495,259 +447,14 @@ Phone Somebody's telephone number. Mobile assumed. - - Activist Swarm - - - Activistship - - - Agent Corps - - - Agent - - - Agent - - - Agent - - - Agents - - - Agency - - - Ambassador Corps - - - Ambassador - - - Ambassador - - - Ambassador - - - Ambassadors - - - Ambassadorship - - - Citizens - - - Citizenship - - - Customers - - - Custom - - - Member Corps - - - Member - - - Member - - - Member - - - Members - - - Membership - - - Residents - - - Resident - - - Resident - - - Resident - - - Residents - - - Residency - - - Salesforce - - - Saleswoman - - - Salesperson - - - Salesman - - - Salespeople - - - Sales role - - - Supporters - - - Supporter - - - Supporter - - - Supporter - - - Supporters - - - Supportership - Custom As in "show me the advanced options" - - Corps - - - Conscript - - - Conscript - - - Conscript - - - Conscripts - - - Conscripthood - - - Staff - - - Employee - - - Employee - - - Employee - - - Employees - - - Employment - - - Operatives - - - Operative - - - Operative - - - Operative - - - Operatives - - - Operativehood - - - Corps - "Regular" in the military soldier sense, not "regular customer" - - - Regular - "Regular" in the military soldier sense, not "regular customer" - - - Regular - "Regular" in the military soldier sense, not "regular customer" - - - Regular - "Regular" in the military soldier sense, not "regular customer" - - - Regulars - "Regular" in the military soldier sense, not "regular customer" - - - Regularhood - "Regular" in the military soldier sense, not "regular customer" - - - Crew - - - Seaman - ("Seaman" is a Navy rank, not a genderized title) - - - Seaman - ("Seaman" is a Navy rank, not a genderized title) - - - Seaman - ("Seaman" is a Navy rank, not a genderized title) - - - Seamen - ("Seaman" is a Navy rank, not a genderized title) - - - Seamanship - ("Seaman" is a Navy rank, not a genderized title) - Create Like "Create Organization" - - Forces - - - Person - - - Person - - - Person - - - People - - - Personhood - All @@ -790,24 +497,6 @@ Help - - Contributor Corps - - - Contributor - - - Contributor - - - Contributor - - - Contributors - - - Contributorship - Female Legal gender @@ -820,12 +509,29 @@ Unknown or Undisclosed Used for gender et al - + MM/DD/YYYY Adapt format for culture, then translate to human-readability, not machine-readability. E.g. ÅÅÅÅ-MM-DD for Swedish. - - MMM d, YYYY + + MMM d, yyyy Convert the formatting only - this is machine interpreted. Example: "December 23, 1921". + + five-year + + + lifetime + Like "a lifetime membership" + + + one-month + + + one-year + + + two-year + Like "a two-year membership" + \ No newline at end of file diff --git a/Site5/App_GlobalResources/Pages.Swarm.resx b/Site5/App_GlobalResources/Pages.Swarm.resx index 7a1a65db..719bfc0f 100644 --- a/Site5/App_GlobalResources/Pages.Swarm.resx +++ b/Site5/App_GlobalResources/Pages.Swarm.resx @@ -130,8 +130,11 @@ A valid street or P.O. box is required. - This is where you enter new people into the organization. As you register them for a {0} {1}, they will receive a welcome message with a randomized login password in mail. The local officers will also be notified of the new person, for an opportunity to send them a welcome message. - {0} and {1} can be "one-year" and "Membership", for example + This is where you enter new people into the organization. As you register them for a <strong>{0} {1}</strong> lasting until <strong>{2}</strong>, they will receive a welcome message with a randomized login password in mail. The local officers will also be notified of the new person, for an opportunity to send them a welcome message. + {0} and {1} can be "one-year" and "Membership", for example. {2} is LongDateString. + + + The person was successfully added to the organization. Add [Regular] diff --git a/Site5/Pages/v5/Admin/CreateOrganization.aspx.cs b/Site5/Pages/v5/Admin/CreateOrganization.aspx.cs index 9666142c..21af60d2 100644 --- a/Site5/Pages/v5/Admin/CreateOrganization.aspx.cs +++ b/Site5/Pages/v5/Admin/CreateOrganization.aspx.cs @@ -11,12 +11,6 @@ namespace Swarmops.Frontend.Pages.v5.Admin { public partial class CreateOrganization : PageV5Base { - private readonly string[] _personLabels = - { - "Activist", "Person", "Sailor", "Regular", "Ambassador", "Salesperson", "Contributor", - "Member", "Operative", "Employee", "Customer", "Conscript", "Resident", "Citizen", "Agent" - }; - protected void Page_Load(object sender, EventArgs e) { this.BoxTitle.Text = PageTitle = Resources.Pages.Admin.CreateOrganization_PageTitle; @@ -58,12 +52,12 @@ namespace Swarmops.Frontend.Pages.v5.Admin List localizedPersonLabels = new List(); - foreach (string personLabel in this._personLabels) + foreach (ParticipantTitle title in (ParticipantTitle[]) Enum.GetValues(typeof(ParticipantTitle))) { string localizedPersonLabel = - Resources.Global.ResourceManager.GetString("Title_" + personLabel + "_Plural"); + Participant.Localized(title, TitleVariant.Plural); - localizedPersonLabels.Add(localizedPersonLabel + "|" + personLabel); + localizedPersonLabels.Add(localizedPersonLabel + "|" + title.ToString()); } localizedPersonLabels.Sort(); // Sorts _localized_ @@ -98,7 +92,7 @@ namespace Swarmops.Frontend.Pages.v5.Admin protected void ButtonCreate_Click(object sender, EventArgs e) { string activistLabel = this.DropActivistLabel.SelectedValue; - string peopleLabel = this.DropPersonLabel.SelectedValue; + ParticipantTitle peopleLabel = (ParticipantTitle)(Enum.Parse(typeof(ParticipantTitle),this.DropPersonLabel.SelectedValue)); string asRoot = this.DropCreateChild.SelectedValue; string currencyCode = this.DropCurrencies.SelectedValue; string newOrgName = this.TextOrganizationName.Text; @@ -108,7 +102,7 @@ namespace Swarmops.Frontend.Pages.v5.Admin throw new ArgumentException("Organization name can't be empty"); } - if (activistLabel == "0" || peopleLabel == "0" || asRoot == "0" || currencyCode == "0") + if (activistLabel == "0" || peopleLabel == ParticipantTitle.Unknown || asRoot == "0" || currencyCode == "0") { throw new ArgumentException("Necessary argument was not supplied (did client-side validation run?)"); } @@ -130,8 +124,8 @@ namespace Swarmops.Frontend.Pages.v5.Admin Membership.Create(CurrentUser, newOrganization, DateTime.UtcNow.AddYears(2)); - string successMessage = String.Format(Resources.Pages.Admin.CreateOrganization_Success, - Resources.Global.ResourceManager.GetString("Title_" + peopleLabel + "_Ship")); + string successMessage = String.Format (Resources.Pages.Admin.CreateOrganization_Success, + Participant.Localized (peopleLabel, TitleVariant.Ship)); Response.AppendCookie(new HttpCookie("DashboardMessage", HttpUtility.UrlEncode(successMessage))); diff --git a/Site5/Pages/v5/Admin/EditOrganization.aspx.cs b/Site5/Pages/v5/Admin/EditOrganization.aspx.cs index 544e61e7..cb17d473 100644 --- a/Site5/Pages/v5/Admin/EditOrganization.aspx.cs +++ b/Site5/Pages/v5/Admin/EditOrganization.aspx.cs @@ -5,6 +5,7 @@ using Swarmops.Basic.Enums; using Swarmops.Logic.Financial; using Swarmops.Logic.Security; using Swarmops.Logic.Structure; +using Swarmops.Logic.Swarm; namespace Swarmops.Frontend.Pages.v5.Admin { @@ -30,10 +31,8 @@ namespace Swarmops.Frontend.Pages.v5.Admin private void Localize() { - string participants = - Resources.Global.ResourceManager.GetString("Title_" + CurrentOrganization.RegularLabel + "_Plural"); - string participantship = - Resources.Global.ResourceManager.GetString("Title_" + CurrentOrganization.RegularLabel + "_Ship"); + string participants = Participant.Localized (CurrentOrganization.RegularLabel, TitleVariant.Plural); + string participantship = Participant.Localized (CurrentOrganization.RegularLabel, TitleVariant.Ship); this.LabelParticipationEntry.Text = String.Format(Resources.Pages.Admin.EditOrganization_ParticipationBeginsWhen, participants); @@ -72,8 +71,8 @@ namespace Swarmops.Frontend.Pages.v5.Admin this.DropMembersWhere.Items.Add(new ListItem("All applicable organizations", "All")); this.DropMembershipDuration.Items.Clear(); - this.DropMembershipDuration.Items.Add(new ListItem("One month", "Month")); - this.DropMembershipDuration.Items.Add(new ListItem("One year", "Year")); + this.DropMembershipDuration.Items.Add(new ListItem("One month", "OneMonth")); + this.DropMembershipDuration.Items.Add(new ListItem("One year", "OneYear")); this.DropMembershipDuration.Items.Add(new ListItem("Two years", "TwoYears")); this.DropMembershipDuration.Items.Add(new ListItem("Five years", "FiveYears")); this.DropMembershipDuration.Items.Add(new ListItem("Forever", "Forever")); diff --git a/Site5/Pages/v5/Swarm/AddPerson.aspx b/Site5/Pages/v5/Swarm/AddPerson.aspx index 2d593aa7..501f90da 100644 --- a/Site5/Pages/v5/Swarm/AddPerson.aspx +++ b/Site5/Pages/v5/Swarm/AddPerson.aspx @@ -16,6 +16,10 @@ $('#<%=this.TextCity.ClientID%>').on('input', function () { CheckPostalCity(); }); + + if (onDocReadyAlert.length > 0) { + alertify.log(onDocReadyAlert); + } }); function CheckPostalCity() { @@ -128,10 +132,10 @@ function ValidateFields() { var isValid = true; - isValid = validateTextField('#<%=this.TextName.ClientID %>', '') && isValid; - isValid = validateTextField('#<%=this.TextMail.ClientID %>', '') && isValid; - isValid = validateTextField('#<%=this.TextStreet1.ClientID %>', '') && isValid; - isValid = validateTextField('#<%=this.TextCity.ClientID %>', '') && isValid; + isValid = ValidateTextField('#<%=this.TextCity.ClientID %>', "") && isValid; + isValid = ValidateTextField('#<%=this.TextStreet1.ClientID %>', "") && isValid; + isValid = ValidateTextField('#<%=this.TextMail.ClientID %>', "") && isValid; + isValid = ValidateTextField('#<%=this.TextName.ClientID %>', "") && isValid; // TODO: Actually validate geography? @@ -139,6 +143,7 @@ } function ValidateTextField(fieldId, message) { + $(fieldId).removeClass("entryError"); if ($(fieldId).val().length == 0) { alertify.error(message); $(fieldId).addClass("entryError"); @@ -158,6 +163,8 @@ var postalCodeVisible = true; var postalCodeIdentified = false; + var onDocReadyAlert = ''; + @@ -176,8 +183,6 @@  
​
​
-  
- ​
+
diff --git a/Site5/Pages/v5/Swarm/AddPerson.aspx.cs b/Site5/Pages/v5/Swarm/AddPerson.aspx.cs index e2829317..3199906d 100644 --- a/Site5/Pages/v5/Swarm/AddPerson.aspx.cs +++ b/Site5/Pages/v5/Swarm/AddPerson.aspx.cs @@ -2,7 +2,9 @@ using System.Web.UI; using System.Web.UI.WebControls; using Resources; +using Swarmops.Logic.Security; using Swarmops.Logic.Structure; +using Swarmops.Logic.Swarm; // ReSharper disable once CheckNamespace @@ -53,17 +55,20 @@ namespace Swarmops.Frontend.Pages.v5.Swarm this.DropGenders.Items.Add(new ListItem(Global.Global_UnknownUndisclosed, "Unknown")); this.DropGenders.Items.Add(new ListItem(Global.Global_Female, "Female")); this.DropGenders.Items.Add(new ListItem(Global.Global_Male, "Male")); - - this.LabelExpiry.Text = DateTime.Today.AddYears(1).ToString(Global.Global_LongDateFormatSansWeekday); } private void Localize() { - // TODO + this.LiteralErrorCity.Text = Resources.Pages.Swarm.AddPerson_ErrorCity; + this.LiteralErrorMail.Text = Resources.Pages.Swarm.AddPerson_ErrorMail; + this.LiteralErrorName.Text = Resources.Pages.Swarm.AddPerson_ErrorName; + this.LiteralErrorStreet.Text = Resources.Pages.Swarm.AddPerson_ErrorStreet; - InfoBoxLiteral = Resources.Pages.Swarm.AddPerson_Info; + InfoBoxLiteral = String.Format(Resources.Pages.Swarm.AddPerson_Info, Global.Timespan_OneYear, + Participant.Localized (CurrentOrganization.RegularLabel, TitleVariant.Ship), + DateTime.Today.AddYears(1).ToLongDateString()); - this.TextDateOfBirth.Attributes["placeholder"] = Global.Global_DateFormatShort; + this.TextDateOfBirth.Attributes["placeholder"] = Global.Global_DateFormatShortReadable; this.TextName.Attributes["placeholder"] = "Joe Smith"; this.TextMail.Attributes["placeholder"] = "joe@example.com"; this.TextPhone.Attributes["placeholder"] = "+1 263 151 1341"; @@ -73,11 +78,33 @@ namespace Swarmops.Frontend.Pages.v5.Swarm protected void ButtonSubmit_Click(object sender, EventArgs e) { - // Register user + string randomPassword = Authentication.CreateRandomPassword(24); + + + + // Person.Create() // Send notify + // "Welcome to Swarmops. Your password is:\r\n\r\n" + randomPassword; + // Send password in mail + + + // Clear form and make way for next person + + this.TextName.Text = string.Empty; + this.TextStreet1.Text = string.Empty; + this.TextStreet2.Text = string.Empty; + this.TextMail.Text = string.Empty; + this.TextPhone.Text = string.Empty; + this.TextPostal.Text = string.Empty; + this.TextCity.Text = string.Empty; + this.TextDateOfBirth.Text = string.Empty; + this.DropGenders.SelectedValue = "Unknown"; + + this.TextName.Focus(); + this.LiteralLoadAlert.Text = Resources.Pages.Swarm.AddPerson_PersonSuccessfullyRegistered; } } } \ No newline at end of file diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs index f9f88f0d..413e4667 100644 --- a/Site5/Security/Login.aspx.cs +++ b/Site5/Security/Login.aspx.cs @@ -268,7 +268,7 @@ namespace Swarmops.Pages.Security private void Localize() { this.LabelCurrentOrganizationName.Text = Resources.Global.Global_Organization; - this.LabelCurrentUserName.Text = Resources.Global.Title_Person_Generic; + this.LabelCurrentUserName.Text = Participant.Localized (ParticipantTitle.Person, TitleVariant.Generic); this.LabelPageTitle.Text = Resources.Pages.Security.Login_PageTitle; this.LabelPreferences.Text = Resources.Global.Global_NA; this.LabelSidebarInfoHeader.Text = Resources.Global.Sidebar_Information;