Refactor: Moved participant titles to Logic

This commit is contained in:
Rick Falkvinge
2014-12-05 17:37:01 +01:00
parent 54a73d001b
commit 9753f0345c
12 changed files with 1516 additions and 355 deletions
+927
View File
@@ -0,0 +1,927 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 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.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swarmops.Logic.App_GlobalResources {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// 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() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[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;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Activist Swarm.
/// </summary>
internal static string Title_Activist_Corps {
get {
return ResourceManager.GetString("Title_Activist_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Activist.
/// </summary>
internal static string Title_Activist_Female {
get {
return ResourceManager.GetString("Title_Activist_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Activist.
/// </summary>
internal static string Title_Activist_Generic {
get {
return ResourceManager.GetString("Title_Activist_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Activist.
/// </summary>
internal static string Title_Activist_Male {
get {
return ResourceManager.GetString("Title_Activist_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Activists.
/// </summary>
internal static string Title_Activist_Plural {
get {
return ResourceManager.GetString("Title_Activist_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Activistship.
/// </summary>
internal static string Title_Activist_Ship {
get {
return ResourceManager.GetString("Title_Activist_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Agent Corps.
/// </summary>
internal static string Title_Agent_Corps {
get {
return ResourceManager.GetString("Title_Agent_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Agent.
/// </summary>
internal static string Title_Agent_Female {
get {
return ResourceManager.GetString("Title_Agent_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Agent.
/// </summary>
internal static string Title_Agent_Generic {
get {
return ResourceManager.GetString("Title_Agent_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Agent.
/// </summary>
internal static string Title_Agent_Male {
get {
return ResourceManager.GetString("Title_Agent_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Agents.
/// </summary>
internal static string Title_Agent_Plural {
get {
return ResourceManager.GetString("Title_Agent_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Agency.
/// </summary>
internal static string Title_Agent_Ship {
get {
return ResourceManager.GetString("Title_Agent_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ambassador Corps.
/// </summary>
internal static string Title_Ambassador_Corps {
get {
return ResourceManager.GetString("Title_Ambassador_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ambassador.
/// </summary>
internal static string Title_Ambassador_Female {
get {
return ResourceManager.GetString("Title_Ambassador_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ambassador.
/// </summary>
internal static string Title_Ambassador_Generic {
get {
return ResourceManager.GetString("Title_Ambassador_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ambassador.
/// </summary>
internal static string Title_Ambassador_Male {
get {
return ResourceManager.GetString("Title_Ambassador_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ambassadors.
/// </summary>
internal static string Title_Ambassador_Plural {
get {
return ResourceManager.GetString("Title_Ambassador_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Ambassadorship.
/// </summary>
internal static string Title_Ambassador_Ship {
get {
return ResourceManager.GetString("Title_Ambassador_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Citizens.
/// </summary>
internal static string Title_Citizen_Corps {
get {
return ResourceManager.GetString("Title_Citizen_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Citizen.
/// </summary>
internal static string Title_Citizen_Female {
get {
return ResourceManager.GetString("Title_Citizen_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Citizen.
/// </summary>
internal static string Title_Citizen_Generic {
get {
return ResourceManager.GetString("Title_Citizen_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Citizen.
/// </summary>
internal static string Title_Citizen_Male {
get {
return ResourceManager.GetString("Title_Citizen_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Citizens.
/// </summary>
internal static string Title_Citizen_Plural {
get {
return ResourceManager.GetString("Title_Citizen_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Citizenship.
/// </summary>
internal static string Title_Citizen_Ship {
get {
return ResourceManager.GetString("Title_Citizen_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Corps.
/// </summary>
internal static string Title_Conscript_Corps {
get {
return ResourceManager.GetString("Title_Conscript_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Conscript.
/// </summary>
internal static string Title_Conscript_Female {
get {
return ResourceManager.GetString("Title_Conscript_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Conscript.
/// </summary>
internal static string Title_Conscript_Generic {
get {
return ResourceManager.GetString("Title_Conscript_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Conscript.
/// </summary>
internal static string Title_Conscript_Male {
get {
return ResourceManager.GetString("Title_Conscript_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Conscripts.
/// </summary>
internal static string Title_Conscript_Plural {
get {
return ResourceManager.GetString("Title_Conscript_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Conscripthood.
/// </summary>
internal static string Title_Conscript_Ship {
get {
return ResourceManager.GetString("Title_Conscript_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Contributor Corps.
/// </summary>
internal static string Title_Contributor_Corps {
get {
return ResourceManager.GetString("Title_Contributor_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Contributor.
/// </summary>
internal static string Title_Contributor_Female {
get {
return ResourceManager.GetString("Title_Contributor_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Contributor.
/// </summary>
internal static string Title_Contributor_Generic {
get {
return ResourceManager.GetString("Title_Contributor_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Contributor.
/// </summary>
internal static string Title_Contributor_Male {
get {
return ResourceManager.GetString("Title_Contributor_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Contributors.
/// </summary>
internal static string Title_Contributor_Plural {
get {
return ResourceManager.GetString("Title_Contributor_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Contributorship.
/// </summary>
internal static string Title_Contributor_Ship {
get {
return ResourceManager.GetString("Title_Contributor_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Customers.
/// </summary>
internal static string Title_Customer_Corps {
get {
return ResourceManager.GetString("Title_Customer_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Customer.
/// </summary>
internal static string Title_Customer_Female {
get {
return ResourceManager.GetString("Title_Customer_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Customer.
/// </summary>
internal static string Title_Customer_Generic {
get {
return ResourceManager.GetString("Title_Customer_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Customer.
/// </summary>
internal static string Title_Customer_Male {
get {
return ResourceManager.GetString("Title_Customer_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Customers.
/// </summary>
internal static string Title_Customer_Plural {
get {
return ResourceManager.GetString("Title_Customer_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Custom.
/// </summary>
internal static string Title_Customer_Ship {
get {
return ResourceManager.GetString("Title_Customer_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Staff.
/// </summary>
internal static string Title_Employee_Corps {
get {
return ResourceManager.GetString("Title_Employee_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Employee.
/// </summary>
internal static string Title_Employee_Female {
get {
return ResourceManager.GetString("Title_Employee_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Employee.
/// </summary>
internal static string Title_Employee_Generic {
get {
return ResourceManager.GetString("Title_Employee_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Employee.
/// </summary>
internal static string Title_Employee_Male {
get {
return ResourceManager.GetString("Title_Employee_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Employees.
/// </summary>
internal static string Title_Employee_Plural {
get {
return ResourceManager.GetString("Title_Employee_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Employment.
/// </summary>
internal static string Title_Employee_Ship {
get {
return ResourceManager.GetString("Title_Employee_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Member Corps.
/// </summary>
internal static string Title_Member_Corps {
get {
return ResourceManager.GetString("Title_Member_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Member.
/// </summary>
internal static string Title_Member_Female {
get {
return ResourceManager.GetString("Title_Member_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Member.
/// </summary>
internal static string Title_Member_Generic {
get {
return ResourceManager.GetString("Title_Member_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Member.
/// </summary>
internal static string Title_Member_Male {
get {
return ResourceManager.GetString("Title_Member_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Members.
/// </summary>
internal static string Title_Member_Plural {
get {
return ResourceManager.GetString("Title_Member_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Membership.
/// </summary>
internal static string Title_Member_Ship {
get {
return ResourceManager.GetString("Title_Member_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operatives.
/// </summary>
internal static string Title_Operative_Corps {
get {
return ResourceManager.GetString("Title_Operative_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operative.
/// </summary>
internal static string Title_Operative_Female {
get {
return ResourceManager.GetString("Title_Operative_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operative.
/// </summary>
internal static string Title_Operative_Generic {
get {
return ResourceManager.GetString("Title_Operative_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operative.
/// </summary>
internal static string Title_Operative_Male {
get {
return ResourceManager.GetString("Title_Operative_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operatives.
/// </summary>
internal static string Title_Operative_Plural {
get {
return ResourceManager.GetString("Title_Operative_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operativehood.
/// </summary>
internal static string Title_Operative_Ship {
get {
return ResourceManager.GetString("Title_Operative_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Forces.
/// </summary>
internal static string Title_Person_Corps {
get {
return ResourceManager.GetString("Title_Person_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Person.
/// </summary>
internal static string Title_Person_Female {
get {
return ResourceManager.GetString("Title_Person_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Person.
/// </summary>
internal static string Title_Person_Generic {
get {
return ResourceManager.GetString("Title_Person_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Person.
/// </summary>
internal static string Title_Person_Male {
get {
return ResourceManager.GetString("Title_Person_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to People.
/// </summary>
internal static string Title_Person_Plural {
get {
return ResourceManager.GetString("Title_Person_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Personhood.
/// </summary>
internal static string Title_Person_Ship {
get {
return ResourceManager.GetString("Title_Person_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Corps.
/// </summary>
internal static string Title_Regular_Corps {
get {
return ResourceManager.GetString("Title_Regular_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Regular.
/// </summary>
internal static string Title_Regular_Female {
get {
return ResourceManager.GetString("Title_Regular_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Regular.
/// </summary>
internal static string Title_Regular_Generic {
get {
return ResourceManager.GetString("Title_Regular_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Regular.
/// </summary>
internal static string Title_Regular_Male {
get {
return ResourceManager.GetString("Title_Regular_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Regulars.
/// </summary>
internal static string Title_Regular_Plural {
get {
return ResourceManager.GetString("Title_Regular_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Regularhood.
/// </summary>
internal static string Title_Regular_Ship {
get {
return ResourceManager.GetString("Title_Regular_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Residents.
/// </summary>
internal static string Title_Resident_Corps {
get {
return ResourceManager.GetString("Title_Resident_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Resident.
/// </summary>
internal static string Title_Resident_Female {
get {
return ResourceManager.GetString("Title_Resident_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Resident.
/// </summary>
internal static string Title_Resident_Generic {
get {
return ResourceManager.GetString("Title_Resident_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Resident.
/// </summary>
internal static string Title_Resident_Male {
get {
return ResourceManager.GetString("Title_Resident_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Residents.
/// </summary>
internal static string Title_Resident_Plural {
get {
return ResourceManager.GetString("Title_Resident_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Residency.
/// </summary>
internal static string Title_Resident_Ship {
get {
return ResourceManager.GetString("Title_Resident_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Crew.
/// </summary>
internal static string Title_Sailor_Corps {
get {
return ResourceManager.GetString("Title_Sailor_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Seaman.
/// </summary>
internal static string Title_Sailor_Female {
get {
return ResourceManager.GetString("Title_Sailor_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Seaman.
/// </summary>
internal static string Title_Sailor_Generic {
get {
return ResourceManager.GetString("Title_Sailor_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Seaman.
/// </summary>
internal static string Title_Sailor_Male {
get {
return ResourceManager.GetString("Title_Sailor_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Seamen.
/// </summary>
internal static string Title_Sailor_Plural {
get {
return ResourceManager.GetString("Title_Sailor_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Seamanship.
/// </summary>
internal static string Title_Sailor_Ship {
get {
return ResourceManager.GetString("Title_Sailor_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salesforce.
/// </summary>
internal static string Title_Salesperson_Corps {
get {
return ResourceManager.GetString("Title_Salesperson_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Saleswoman.
/// </summary>
internal static string Title_Salesperson_Female {
get {
return ResourceManager.GetString("Title_Salesperson_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salesperson.
/// </summary>
internal static string Title_Salesperson_Generic {
get {
return ResourceManager.GetString("Title_Salesperson_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salesman.
/// </summary>
internal static string Title_Salesperson_Male {
get {
return ResourceManager.GetString("Title_Salesperson_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Salespeople.
/// </summary>
internal static string Title_Salesperson_Plural {
get {
return ResourceManager.GetString("Title_Salesperson_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Sales role.
/// </summary>
internal static string Title_Salesperson_Ship {
get {
return ResourceManager.GetString("Title_Salesperson_Ship", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Supporters.
/// </summary>
internal static string Title_Supporter_Corps {
get {
return ResourceManager.GetString("Title_Supporter_Corps", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Supporter.
/// </summary>
internal static string Title_Supporter_Female {
get {
return ResourceManager.GetString("Title_Supporter_Female", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Supporter.
/// </summary>
internal static string Title_Supporter_Generic {
get {
return ResourceManager.GetString("Title_Supporter_Generic", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Supporter.
/// </summary>
internal static string Title_Supporter_Male {
get {
return ResourceManager.GetString("Title_Supporter_Male", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Supporters.
/// </summary>
internal static string Title_Supporter_Plural {
get {
return ResourceManager.GetString("Title_Supporter_Plural", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Supportership.
/// </summary>
internal static string Title_Supporter_Ship {
get {
return ResourceManager.GetString("Title_Supporter_Ship", resourceCulture);
}
}
}
}
@@ -0,0 +1,431 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Title_Activist_Corps" xml:space="preserve">
<value>Activist Swarm</value>
</data>
<data name="Title_Activist_Female" xml:space="preserve">
<value>Activist</value>
<comment>Female singular</comment>
</data>
<data name="Title_Activist_Generic" xml:space="preserve">
<value>Activist</value>
<comment>Gender neutral</comment>
</data>
<data name="Title_Activist_Male" xml:space="preserve">
<value>Activist</value>
<comment>Male singular</comment>
</data>
<data name="Title_Activist_Plural" xml:space="preserve">
<value>Activists</value>
<comment>Gender neutral plural</comment>
</data>
<data name="Title_Activist_Ship" xml:space="preserve">
<value>Activistship</value>
</data>
<data name="Title_Agent_Corps" xml:space="preserve">
<value>Agent Corps</value>
</data>
<data name="Title_Agent_Female" xml:space="preserve">
<value>Agent</value>
</data>
<data name="Title_Agent_Generic" xml:space="preserve">
<value>Agent</value>
</data>
<data name="Title_Agent_Male" xml:space="preserve">
<value>Agent</value>
</data>
<data name="Title_Agent_Plural" xml:space="preserve">
<value>Agents</value>
</data>
<data name="Title_Agent_Ship" xml:space="preserve">
<value>Agency</value>
</data>
<data name="Title_Ambassador_Corps" xml:space="preserve">
<value>Ambassador Corps</value>
</data>
<data name="Title_Ambassador_Female" xml:space="preserve">
<value>Ambassador</value>
</data>
<data name="Title_Ambassador_Generic" xml:space="preserve">
<value>Ambassador</value>
</data>
<data name="Title_Ambassador_Male" xml:space="preserve">
<value>Ambassador</value>
</data>
<data name="Title_Ambassador_Plural" xml:space="preserve">
<value>Ambassadors</value>
</data>
<data name="Title_Ambassador_Ship" xml:space="preserve">
<value>Ambassadorship</value>
</data>
<data name="Title_Citizen_Corps" xml:space="preserve">
<value>Citizens</value>
</data>
<data name="Title_Citizen_Female" xml:space="preserve">
<value>Citizen</value>
<comment>Female singular</comment>
</data>
<data name="Title_Citizen_Generic" xml:space="preserve">
<value>Citizen</value>
<comment>Gender neutral</comment>
</data>
<data name="Title_Citizen_Male" xml:space="preserve">
<value>Citizen</value>
<comment>Male singular</comment>
</data>
<data name="Title_Citizen_Plural" xml:space="preserve">
<value>Citizens</value>
<comment>Gender neutral plural</comment>
</data>
<data name="Title_Citizen_Ship" xml:space="preserve">
<value>Citizenship</value>
</data>
<data name="Title_Conscript_Corps" xml:space="preserve">
<value>Corps</value>
</data>
<data name="Title_Conscript_Female" xml:space="preserve">
<value>Conscript</value>
</data>
<data name="Title_Conscript_Generic" xml:space="preserve">
<value>Conscript</value>
</data>
<data name="Title_Conscript_Male" xml:space="preserve">
<value>Conscript</value>
</data>
<data name="Title_Conscript_Plural" xml:space="preserve">
<value>Conscripts</value>
</data>
<data name="Title_Conscript_Ship" xml:space="preserve">
<value>Conscripthood</value>
</data>
<data name="Title_Contributor_Corps" xml:space="preserve">
<value>Contributor Corps</value>
</data>
<data name="Title_Contributor_Female" xml:space="preserve">
<value>Contributor</value>
</data>
<data name="Title_Contributor_Generic" xml:space="preserve">
<value>Contributor</value>
</data>
<data name="Title_Contributor_Male" xml:space="preserve">
<value>Contributor</value>
</data>
<data name="Title_Contributor_Plural" xml:space="preserve">
<value>Contributors</value>
</data>
<data name="Title_Contributor_Ship" xml:space="preserve">
<value>Contributorship</value>
</data>
<data name="Title_Customer_Corps" xml:space="preserve">
<value>Customers</value>
</data>
<data name="Title_Customer_Female" xml:space="preserve">
<value>Customer</value>
<comment>Female singular</comment>
</data>
<data name="Title_Customer_Generic" xml:space="preserve">
<value>Customer</value>
<comment>Gender neutral</comment>
</data>
<data name="Title_Customer_Male" xml:space="preserve">
<value>Customer</value>
<comment>Male singular</comment>
</data>
<data name="Title_Customer_Plural" xml:space="preserve">
<value>Customers</value>
<comment>Gender neutral plural</comment>
</data>
<data name="Title_Customer_Ship" xml:space="preserve">
<value>Custom</value>
</data>
<data name="Title_Employee_Corps" xml:space="preserve">
<value>Staff</value>
</data>
<data name="Title_Employee_Female" xml:space="preserve">
<value>Employee</value>
</data>
<data name="Title_Employee_Generic" xml:space="preserve">
<value>Employee</value>
</data>
<data name="Title_Employee_Male" xml:space="preserve">
<value>Employee</value>
</data>
<data name="Title_Employee_Plural" xml:space="preserve">
<value>Employees</value>
</data>
<data name="Title_Employee_Ship" xml:space="preserve">
<value>Employment</value>
</data>
<data name="Title_Member_Corps" xml:space="preserve">
<value>Member Corps</value>
</data>
<data name="Title_Member_Female" xml:space="preserve">
<value>Member</value>
</data>
<data name="Title_Member_Generic" xml:space="preserve">
<value>Member</value>
</data>
<data name="Title_Member_Male" xml:space="preserve">
<value>Member</value>
</data>
<data name="Title_Member_Plural" xml:space="preserve">
<value>Members</value>
</data>
<data name="Title_Member_Ship" xml:space="preserve">
<value>Membership</value>
</data>
<data name="Title_Operative_Corps" xml:space="preserve">
<value>Operatives</value>
</data>
<data name="Title_Operative_Female" xml:space="preserve">
<value>Operative</value>
</data>
<data name="Title_Operative_Generic" xml:space="preserve">
<value>Operative</value>
</data>
<data name="Title_Operative_Male" xml:space="preserve">
<value>Operative</value>
</data>
<data name="Title_Operative_Plural" xml:space="preserve">
<value>Operatives</value>
</data>
<data name="Title_Operative_Ship" xml:space="preserve">
<value>Operativehood</value>
</data>
<data name="Title_Person_Corps" xml:space="preserve">
<value>Forces</value>
</data>
<data name="Title_Person_Female" xml:space="preserve">
<value>Person</value>
</data>
<data name="Title_Person_Generic" xml:space="preserve">
<value>Person</value>
</data>
<data name="Title_Person_Male" xml:space="preserve">
<value>Person</value>
</data>
<data name="Title_Person_Plural" xml:space="preserve">
<value>People</value>
</data>
<data name="Title_Person_Ship" xml:space="preserve">
<value>Personhood</value>
</data>
<data name="Title_Regular_Corps" xml:space="preserve">
<value>Corps</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Female" xml:space="preserve">
<value>Regular</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Generic" xml:space="preserve">
<value>Regular</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Male" xml:space="preserve">
<value>Regular</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Plural" xml:space="preserve">
<value>Regulars</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Ship" xml:space="preserve">
<value>Regularhood</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Resident_Corps" xml:space="preserve">
<value>Residents</value>
</data>
<data name="Title_Resident_Female" xml:space="preserve">
<value>Resident</value>
</data>
<data name="Title_Resident_Generic" xml:space="preserve">
<value>Resident</value>
</data>
<data name="Title_Resident_Male" xml:space="preserve">
<value>Resident</value>
</data>
<data name="Title_Resident_Plural" xml:space="preserve">
<value>Residents</value>
</data>
<data name="Title_Resident_Ship" xml:space="preserve">
<value>Residency</value>
</data>
<data name="Title_Sailor_Corps" xml:space="preserve">
<value>Crew</value>
</data>
<data name="Title_Sailor_Female" xml:space="preserve">
<value>Seaman</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Title_Sailor_Generic" xml:space="preserve">
<value>Seaman</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Title_Sailor_Male" xml:space="preserve">
<value>Seaman</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Title_Sailor_Plural" xml:space="preserve">
<value>Seamen</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Title_Sailor_Ship" xml:space="preserve">
<value>Seamanship</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Title_Salesperson_Corps" xml:space="preserve">
<value>Salesforce</value>
</data>
<data name="Title_Salesperson_Female" xml:space="preserve">
<value>Saleswoman</value>
</data>
<data name="Title_Salesperson_Generic" xml:space="preserve">
<value>Salesperson</value>
</data>
<data name="Title_Salesperson_Male" xml:space="preserve">
<value>Salesman</value>
</data>
<data name="Title_Salesperson_Plural" xml:space="preserve">
<value>Salespeople</value>
</data>
<data name="Title_Salesperson_Ship" xml:space="preserve">
<value>Sales role</value>
</data>
<data name="Title_Supporter_Corps" xml:space="preserve">
<value>Supporters</value>
</data>
<data name="Title_Supporter_Female" xml:space="preserve">
<value>Supporter</value>
</data>
<data name="Title_Supporter_Generic" xml:space="preserve">
<value>Supporter</value>
</data>
<data name="Title_Supporter_Male" xml:space="preserve">
<value>Supporter</value>
</data>
<data name="Title_Supporter_Plural" xml:space="preserve">
<value>Supporters</value>
</data>
<data name="Title_Supporter_Ship" xml:space="preserve">
<value>Supportership</value>
</data>
</root>
+10
View File
@@ -85,6 +85,11 @@
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="App_GlobalResources\ParticipantTitles.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>ParticipantTitles.resx</DependentUpon>
</Compile>
<Compile Include="Cache\GuidCache.cs" />
<Compile Include="Communications\ICommsRenderer.cs" />
<Compile Include="Communications\ICommsResolver.cs" />
@@ -301,6 +306,7 @@
<Compile Include="Swarm\ParleyOption.cs" />
<Compile Include="Swarm\ParleyOptions.cs" />
<Compile Include="Swarm\Parleys.cs" />
<Compile Include="Swarm\ParticipantTitle.cs" />
<Compile Include="Swarm\PaymentCode.cs" />
<Compile Include="Swarm\People.cs" />
<Compile Include="Swarm\Person.cs" />
@@ -376,6 +382,10 @@
<EmbeddedResource Include="App_GlobalResources\nl-NL\Logic.Communications.Transmission.NotificationPayload.nl-NL.resx" />
<EmbeddedResource Include="App_GlobalResources\nl-NL\Logic.Financial.FinancialTransactionTagSetTypesStock.nl-NL.resx" />
<EmbeddedResource Include="App_GlobalResources\nl-NL\Logic.Swarm.DashboardTodos.nl-NL.resx" />
<EmbeddedResource Include="App_GlobalResources\ParticipantTitles.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>ParticipantTitles.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="App_GlobalResources\pl-PL\Logic.Communications.Transmission.NotificationPayload.pl-PL.resx" />
<EmbeddedResource Include="App_GlobalResources\pl-PL\Logic.Financial.FinancialTransactionTagSetTypesStock.pl-PL.resx" />
<EmbeddedResource Include="App_GlobalResources\pl-PL\Logic.Swarm.DashboardTodos.pl-PL.resx" />
+5 -5
View File
@@ -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
+60
View File
@@ -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
};
}
+20 -314
View File
@@ -411,54 +411,6 @@
<value>On</value>
<comment>On (as opposed to Off)</comment>
</data>
<data name="Title_Customer_Plural" xml:space="preserve">
<value>Customers</value>
<comment>Gender neutral plural</comment>
</data>
<data name="Title_Citizen_Plural" xml:space="preserve">
<value>Citizens</value>
<comment>Gender neutral plural</comment>
</data>
<data name="Title_Activist_Plural" xml:space="preserve">
<value>Activists</value>
<comment>Gender neutral plural</comment>
</data>
<data name="Title_Customer_Female" xml:space="preserve">
<value>Customer</value>
<comment>Female singular</comment>
</data>
<data name="Title_Citizen_Female" xml:space="preserve">
<value>Citizen</value>
<comment>Female singular</comment>
</data>
<data name="Title_Activist_Female" xml:space="preserve">
<value>Activist</value>
<comment>Female singular</comment>
</data>
<data name="Title_Customer_Generic" xml:space="preserve">
<value>Customer</value>
<comment>Gender neutral</comment>
</data>
<data name="Title_Citizen_Generic" xml:space="preserve">
<value>Citizen</value>
<comment>Gender neutral</comment>
</data>
<data name="Title_Activist_Generic" xml:space="preserve">
<value>Activist</value>
<comment>Gender neutral</comment>
</data>
<data name="Title_Customer_Male" xml:space="preserve">
<value>Customer</value>
<comment>Male singular</comment>
</data>
<data name="Title_Citizen_Male" xml:space="preserve">
<value>Citizen</value>
<comment>Male singular</comment>
</data>
<data name="Title_Activist_Male" xml:space="preserve">
<value>Activist</value>
<comment>Male singular</comment>
</data>
<data name="Global_Organization_Commercial" xml:space="preserve">
<value>Commercial</value>
<comment>A commercial organization (for-profit enterprise)</comment>
@@ -495,259 +447,14 @@
<value>Phone</value>
<comment>Somebody's telephone number. Mobile assumed.</comment>
</data>
<data name="Title_Activist_Corps" xml:space="preserve">
<value>Activist Swarm</value>
</data>
<data name="Title_Activist_Ship" xml:space="preserve">
<value>Activistship</value>
</data>
<data name="Title_Agent_Corps" xml:space="preserve">
<value>Agent Corps</value>
</data>
<data name="Title_Agent_Female" xml:space="preserve">
<value>Agent</value>
</data>
<data name="Title_Agent_Generic" xml:space="preserve">
<value>Agent</value>
</data>
<data name="Title_Agent_Male" xml:space="preserve">
<value>Agent</value>
</data>
<data name="Title_Agent_Plural" xml:space="preserve">
<value>Agents</value>
</data>
<data name="Title_Agent_Ship" xml:space="preserve">
<value>Agency</value>
</data>
<data name="Title_Ambassador_Corps" xml:space="preserve">
<value>Ambassador Corps</value>
</data>
<data name="Title_Ambassador_Female" xml:space="preserve">
<value>Ambassador</value>
</data>
<data name="Title_Ambassador_Generic" xml:space="preserve">
<value>Ambassador</value>
</data>
<data name="Title_Ambassador_Male" xml:space="preserve">
<value>Ambassador</value>
</data>
<data name="Title_Ambassador_Plural" xml:space="preserve">
<value>Ambassadors</value>
</data>
<data name="Title_Ambassador_Ship" xml:space="preserve">
<value>Ambassadorship</value>
</data>
<data name="Title_Citizen_Corps" xml:space="preserve">
<value>Citizens</value>
</data>
<data name="Title_Citizen_Ship" xml:space="preserve">
<value>Citizenship</value>
</data>
<data name="Title_Customer_Corps" xml:space="preserve">
<value>Customers</value>
</data>
<data name="Title_Customer_Ship" xml:space="preserve">
<value>Custom</value>
</data>
<data name="Title_Member_Corps" xml:space="preserve">
<value>Member Corps</value>
</data>
<data name="Title_Member_Female" xml:space="preserve">
<value>Member</value>
</data>
<data name="Title_Member_Generic" xml:space="preserve">
<value>Member</value>
</data>
<data name="Title_Member_Male" xml:space="preserve">
<value>Member</value>
</data>
<data name="Title_Member_Plural" xml:space="preserve">
<value>Members</value>
</data>
<data name="Title_Member_Ship" xml:space="preserve">
<value>Membership</value>
</data>
<data name="Title_Resident_Corps" xml:space="preserve">
<value>Residents</value>
</data>
<data name="Title_Resident_Female" xml:space="preserve">
<value>Resident</value>
</data>
<data name="Title_Resident_Generic" xml:space="preserve">
<value>Resident</value>
</data>
<data name="Title_Resident_Male" xml:space="preserve">
<value>Resident</value>
</data>
<data name="Title_Resident_Plural" xml:space="preserve">
<value>Residents</value>
</data>
<data name="Title_Resident_Ship" xml:space="preserve">
<value>Residency</value>
</data>
<data name="Title_Salesperson_Corps" xml:space="preserve">
<value>Salesforce</value>
</data>
<data name="Title_Salesperson_Female" xml:space="preserve">
<value>Saleswoman</value>
</data>
<data name="Title_Salesperson_Generic" xml:space="preserve">
<value>Salesperson</value>
</data>
<data name="Title_Salesperson_Male" xml:space="preserve">
<value>Salesman</value>
</data>
<data name="Title_Salesperson_Plural" xml:space="preserve">
<value>Salespeople</value>
</data>
<data name="Title_Salesperson_Ship" xml:space="preserve">
<value>Sales role</value>
</data>
<data name="Title_Supporter_Corps" xml:space="preserve">
<value>Supporters</value>
</data>
<data name="Title_Supporter_Female" xml:space="preserve">
<value>Supporter</value>
</data>
<data name="Title_Supporter_Generic" xml:space="preserve">
<value>Supporter</value>
</data>
<data name="Title_Supporter_Male" xml:space="preserve">
<value>Supporter</value>
</data>
<data name="Title_Supporter_Plural" xml:space="preserve">
<value>Supporters</value>
</data>
<data name="Title_Supporter_Ship" xml:space="preserve">
<value>Supportership</value>
</data>
<data name="Global_Custom" xml:space="preserve">
<value>Custom</value>
<comment>As in "show me the advanced options"</comment>
</data>
<data name="Title_Conscript_Corps" xml:space="preserve">
<value>Corps</value>
</data>
<data name="Title_Conscript_Female" xml:space="preserve">
<value>Conscript</value>
</data>
<data name="Title_Conscript_Generic" xml:space="preserve">
<value>Conscript</value>
</data>
<data name="Title_Conscript_Male" xml:space="preserve">
<value>Conscript</value>
</data>
<data name="Title_Conscript_Plural" xml:space="preserve">
<value>Conscripts</value>
</data>
<data name="Title_Conscript_Ship" xml:space="preserve">
<value>Conscripthood</value>
</data>
<data name="Title_Employee_Corps" xml:space="preserve">
<value>Staff</value>
</data>
<data name="Title_Employee_Female" xml:space="preserve">
<value>Employee</value>
</data>
<data name="Title_Employee_Generic" xml:space="preserve">
<value>Employee</value>
</data>
<data name="Title_Employee_Male" xml:space="preserve">
<value>Employee</value>
</data>
<data name="Title_Employee_Plural" xml:space="preserve">
<value>Employees</value>
</data>
<data name="Title_Employee_Ship" xml:space="preserve">
<value>Employment</value>
</data>
<data name="Title_Operative_Corps" xml:space="preserve">
<value>Operatives</value>
</data>
<data name="Title_Operative_Female" xml:space="preserve">
<value>Operative</value>
</data>
<data name="Title_Operative_Generic" xml:space="preserve">
<value>Operative</value>
</data>
<data name="Title_Operative_Male" xml:space="preserve">
<value>Operative</value>
</data>
<data name="Title_Operative_Plural" xml:space="preserve">
<value>Operatives</value>
</data>
<data name="Title_Operative_Ship" xml:space="preserve">
<value>Operativehood</value>
</data>
<data name="Title_Regular_Corps" xml:space="preserve">
<value>Corps</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Female" xml:space="preserve">
<value>Regular</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Generic" xml:space="preserve">
<value>Regular</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Male" xml:space="preserve">
<value>Regular</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Plural" xml:space="preserve">
<value>Regulars</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Regular_Ship" xml:space="preserve">
<value>Regularhood</value>
<comment>"Regular" in the military soldier sense, not "regular customer"</comment>
</data>
<data name="Title_Sailor_Corps" xml:space="preserve">
<value>Crew</value>
</data>
<data name="Title_Sailor_Female" xml:space="preserve">
<value>Seaman</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Title_Sailor_Generic" xml:space="preserve">
<value>Seaman</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Title_Sailor_Male" xml:space="preserve">
<value>Seaman</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Title_Sailor_Plural" xml:space="preserve">
<value>Seamen</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Title_Sailor_Ship" xml:space="preserve">
<value>Seamanship</value>
<comment>("Seaman" is a Navy rank, not a genderized title)</comment>
</data>
<data name="Global_Create" xml:space="preserve">
<value>Create</value>
<comment>Like "Create Organization"</comment>
</data>
<data name="Title_Person_Corps" xml:space="preserve">
<value>Forces</value>
</data>
<data name="Title_Person_Female" xml:space="preserve">
<value>Person</value>
</data>
<data name="Title_Person_Generic" xml:space="preserve">
<value>Person</value>
</data>
<data name="Title_Person_Male" xml:space="preserve">
<value>Person</value>
</data>
<data name="Title_Person_Plural" xml:space="preserve">
<value>People</value>
</data>
<data name="Title_Person_Ship" xml:space="preserve">
<value>Personhood</value>
</data>
<data name="Global_AllYear" xml:space="preserve">
<value>All</value>
</data>
@@ -790,24 +497,6 @@
<data name="Sidebar_Help" xml:space="preserve">
<value>Help</value>
</data>
<data name="Title_Contributor_Corps" xml:space="preserve">
<value>Contributor Corps</value>
</data>
<data name="Title_Contributor_Female" xml:space="preserve">
<value>Contributor</value>
</data>
<data name="Title_Contributor_Generic" xml:space="preserve">
<value>Contributor</value>
</data>
<data name="Title_Contributor_Male" xml:space="preserve">
<value>Contributor</value>
</data>
<data name="Title_Contributor_Plural" xml:space="preserve">
<value>Contributors</value>
</data>
<data name="Title_Contributor_Ship" xml:space="preserve">
<value>Contributorship</value>
</data>
<data name="Global_Female" xml:space="preserve">
<value>Female</value>
<comment>Legal gender</comment>
@@ -820,12 +509,29 @@
<value>Unknown or Undisclosed</value>
<comment>Used for gender et al</comment>
</data>
<data name="Global_DateFormatShort" xml:space="preserve">
<data name="Global_DateFormatShortReadable" xml:space="preserve">
<value>MM/DD/YYYY</value>
<comment>Adapt format for culture, then translate to human-readability, not machine-readability. E.g. ÅÅÅÅ-MM-DD for Swedish.</comment>
</data>
<data name="Global_LongDateFormatSansWeekday" xml:space="preserve">
<value>MMM d, YYYY</value>
<data name="Global_DateFormatLongSansWeekday" xml:space="preserve">
<value>MMM d, yyyy</value>
<comment>Convert the formatting only - this is machine interpreted. Example: "December 23, 1921".</comment>
</data>
<data name="Timespan_FiveYears" xml:space="preserve">
<value>five-year</value>
</data>
<data name="Timespan_Forever" xml:space="preserve">
<value>lifetime</value>
<comment>Like "a lifetime membership"</comment>
</data>
<data name="Timespan_OneMonth" xml:space="preserve">
<value>one-month</value>
</data>
<data name="Timespan_OneYear" xml:space="preserve">
<value>one-year</value>
</data>
<data name="Timespan_TwoYears" xml:space="preserve">
<value>two-year</value>
<comment>Like "a two-year membership"</comment>
</data>
</root>
+5 -2
View File
@@ -130,8 +130,11 @@
<value>A valid street or P.O. box is required.</value>
</data>
<data name="AddPerson_Info" xml:space="preserve">
<value>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.</value>
<comment>{0} and {1} can be "one-year" and "Membership", for example</comment>
<value>This is where you enter new people into the organization. As you register them for a &lt;strong&gt;{0} {1}&lt;/strong&gt; lasting until &lt;strong&gt;{2}&lt;/strong&gt;, 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.</value>
<comment>{0} and {1} can be "one-year" and "Membership", for example. {2} is LongDateString.</comment>
</data>
<data name="AddPerson_PersonSuccessfullyRegistered" xml:space="preserve">
<value>The person was successfully added to the organization.</value>
</data>
<data name="AddPerson_Title" xml:space="preserve">
<value>Add [Regular]</value>
@@ -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<string> localizedPersonLabels = new List<string>();
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)));
@@ -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"));
+12 -8
View File
@@ -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 %>', '<asp:Literal runat="server" ID="LiteralErrorName" />') && isValid;
isValid = validateTextField('#<%=this.TextMail.ClientID %>', '<asp:Literal runat="server" ID="LiteralErrorMail" />') && isValid;
isValid = validateTextField('#<%=this.TextStreet1.ClientID %>', '<asp:Literal runat="server" ID="LiteralErrorStreet" />') && isValid;
isValid = validateTextField('#<%=this.TextCity.ClientID %>', '<asp:Literal runat="server" ID="LiteralErrorCity" />') && isValid;
isValid = ValidateTextField('#<%=this.TextCity.ClientID %>', "<asp:Literal runat="server" ID="LiteralErrorCity" />") && isValid;
isValid = ValidateTextField('#<%=this.TextStreet1.ClientID %>', "<asp:Literal runat="server" ID="LiteralErrorStreet" />") && isValid;
isValid = ValidateTextField('#<%=this.TextMail.ClientID %>', "<asp:Literal runat="server" ID="LiteralErrorMail" />") && isValid;
isValid = ValidateTextField('#<%=this.TextName.ClientID %>', "<asp:Literal runat="server" ID="LiteralErrorName" />") && 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 = '<asp:Literal ID="LiteralLoadAlert" runat="server" />';
</script>
</asp:Content>
@@ -176,8 +183,6 @@
&nbsp;<br/>
<asp:TextBox runat="server" ID="TextDateOfBirth" />&#8203;<br/>
<Swarmops5:DropDown runat="server" ID="DropGenders" />&#8203;<br/>
&nbsp;<br/>
<asp:Label ID="LabelExpiry" runat="server" Text="YYYY-MM-DD" />&#8203;<br/>
<asp:Button ID="ButtonSubmit" runat="server" CssClass="buttonAccentColor NoInputFocus" OnClientClick="return ValidateFields();" OnClick="ButtonSubmit_Click" Text="Register"/>
</div>
<div class="entryLabels">
@@ -193,9 +198,8 @@
<h2>STATISTICAL DATA</h2>
Date of Birth<br />
Legal gender<br />
<h2>SIGNING UP AS</h2>
[Regular] until<br />
</div>
<div style="clear:both"></div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderSide" Runat="Server">
+33 -6
View File
@@ -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;
}
}
}
+1 -1
View File
@@ -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;