Moved App_LocalResources to Global

This commit is contained in:
Rick Falkvinge
2013-09-08 10:42:14 +00:00
parent d0d3877c2d
commit ebb09d8916
10 changed files with 23 additions and 609 deletions
@@ -8,7 +8,7 @@
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swarmops.Logic.Swarm.App_LocalResources {
namespace Swarmops.Logic.App_GlobalResources {
using System;
@@ -39,7 +39,7 @@ namespace Swarmops.Logic.Swarm.App_LocalResources {
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Swarmops.Logic.Swarm.App_LocalResources.Logic.Swarm.DashboardTodos", typeof(Logic_Swarm_DashboardTodos).Assembly);
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Swarmops.Logic.App_GlobalResources.Logic.Swarm.DashboardTodos", typeof(Logic_Swarm_DashboardTodos).Assembly);
resourceMan = temp;
}
return resourceMan;
+1 -1
View File
@@ -61,7 +61,7 @@ namespace Swarmops.Logic.App_GlobalResources {
}
/// <summary>
/// Looks up a localized string similar to Test.
/// Looks up a localized string similar to Test String.
/// </summary>
internal static string TestString {
get {
+1 -1
View File
@@ -118,6 +118,6 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="TestString" xml:space="preserve">
<value>Test</value>
<value>Test String</value>
</data>
</root>
@@ -1,122 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1008
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swarmops.Logic.Communications.Transmission.App_LocalResources {
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 NotificationPayload {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal NotificationPayload() {
}
/// <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.Communications.Transmission.App_LocalResources.NotificationPayload" +
"", typeof(NotificationPayload).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 [ConcernedPersonName] has requested a cash advance of [CurrencyCode] [BudgetAmountFloat] for the purpose of [RequestReason]. This money is part of your budget, [BudgetName].
///
///Please log on to Swarmops at [SystemUrl] to attest or deny..
/// </summary>
internal static string CashAdvance_Requested_Body {
get {
return ResourceManager.GetString("CashAdvance_Requested_Body", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to [OrganizationName] Cash Advance Requested.
/// </summary>
internal static string CashAdvance_Requested_Subject {
get {
return ResourceManager.GetString("CashAdvance_Requested_Subject", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to An unhandled exception was thrown in Swarmops:
///
///[EmbeddedPreformattedText].
/// </summary>
internal static string System_Exception_Body {
get {
return ResourceManager.GetString("System_Exception_Body", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Swarmops EXCEPTION!.
/// </summary>
internal static string System_Exception_Subject {
get {
return ResourceManager.GetString("System_Exception_Subject", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Swarmops Backend version [SwarmopsVersion] on host [HostName] has successfully started and connected to database and notification frameworks..
/// </summary>
internal static string System_Startup_Body {
get {
return ResourceManager.GetString("System_Startup_Body", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Swarmops Backend operational.
/// </summary>
internal static string System_Startup_Subject {
get {
return ResourceManager.GetString("System_Startup_Subject", resourceCulture);
}
}
}
}
@@ -1,142 +0,0 @@
<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="CashAdvance_Requested_Body" xml:space="preserve">
<value>[ConcernedPersonName] has requested a cash advance of [CurrencyCode] [BudgetAmountFloat] for the purpose of [RequestReason]. This money is part of your budget, [BudgetName].
Please log on to Swarmops at [SystemUrl] to attest or deny.</value>
</data>
<data name="CashAdvance_Requested_Subject" xml:space="preserve">
<value>[OrganizationName] Cash Advance Requested</value>
</data>
<data name="System_Exception_Body" xml:space="preserve">
<value>An unhandled exception was thrown in Swarmops:
[EmbeddedPreformattedText]</value>
</data>
<data name="System_Exception_Subject" xml:space="preserve">
<value>Swarmops EXCEPTION!</value>
</data>
<data name="System_Startup_Body" xml:space="preserve">
<value>Swarmops Backend version [SwarmopsVersion] on host [HostName] has successfully started and connected to database and notification frameworks.</value>
</data>
<data name="System_Startup_Subject" xml:space="preserve">
<value>Swarmops Backend operational</value>
</data>
</root>
@@ -37,14 +37,14 @@ namespace Swarmops.Logic.Communications.Transmission
{
// TODO: Pick culture
return ExpandMacros(App_LocalResources.NotificationPayload.ResourceManager.GetString(this.SubjectResource));
return ExpandMacros(App_GlobalResources.Logic_Communications_Transmission_NotificationPayload.ResourceManager.GetString(this.SubjectResource));
}
public string GetBody()
{
// TODO: Pick culture
return ExpandMacros(App_LocalResources.NotificationPayload.ResourceManager.GetString(this.BodyResource));
return ExpandMacros(App_GlobalResources.Logic_Communications_Transmission_NotificationPayload.ResourceManager.GetString(this.BodyResource));
}
public string ExpandMacros (string input)
+7 -25
View File
@@ -65,7 +65,12 @@
</ItemGroup>
<ItemGroup>
<Compile Include="App_GlobalResources\Logic.Swarm.DashboardTodos.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Logic.Swarm.DashboardTodos.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\Logic.Communications.Transmission.NotificationPayload.Designer.cs">
<DependentUpon>Logic.Communications.Transmission.NotificationPayload.resx</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
@@ -74,11 +79,6 @@
<DesignTime>True</DesignTime>
<DependentUpon>Logic.Test.resx</DependentUpon>
</Compile>
<Compile Include="App_GlobalResources\Logic.Communications.Transmission.NotificationPayload.Designer.cs">
<DependentUpon>Logic.Communications.Transmission.NotificationPayload.resx</DependentUpon>
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
</Compile>
<Compile Include="Communications\ICommsRenderer.cs" />
<Compile Include="Communications\ICommsResolver.cs" />
<Compile Include="Communications\ICommsTransmitter.cs" />
@@ -87,11 +87,6 @@
<Compile Include="Communications\OutboundCommRecipients.cs" />
<Compile Include="Communications\OutboundComms.cs" />
<Compile Include="Communications\OutboundCommTransmitException.cs" />
<Compile Include="Communications\Transmission\App_LocalResources\NotificationPayload.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>NotificationPayload.resx</DependentUpon>
</Compile>
<Compile Include="Communications\Transmission\PayloadEnvelope.cs" />
<Compile Include="Communications\Transmission\NotificationPayload.cs" />
<Compile Include="Communications\Transmission\PayloadBase.cs" />
@@ -256,11 +251,6 @@
<Compile Include="Support\TemporaryIdentity.cs" />
<Compile Include="Support\UrlTranslations.cs" />
<Compile Include="Swarm\Activists.cs" />
<Compile Include="Swarm\App_LocalResources\Logic.Swarm.DashboardTodos.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Logic.Swarm.DashboardTodos.resx</DependentUpon>
</Compile>
<Compile Include="Swarm\AuditedPerson.cs" />
<Compile Include="Swarm\ChurnData.cs" />
<Compile Include="Swarm\ChurnDataPoint.cs" />
@@ -318,17 +308,13 @@
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Logic.Swarm.DashboardTodos.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="App_GlobalResources\Logic.Test.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Logic.Test.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="App_GlobalResources\Logic.Communications.Transmission.NotificationPayload.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Logic.Communications.Transmission.NotificationPayload.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Communications\Transmission\App_LocalResources\NotificationPayload.resx">
<EmbeddedResource Include="App_GlobalResources\Logic.Test.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>NotificationPayload.Designer.cs</LastGenOutput>
<LastGenOutput>Logic.Test.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Security\App_LocalResources\Authentication.fi-FI.resx">
<SubType>Designer</SubType>
@@ -343,10 +329,6 @@
<LastGenOutput>Authentication.sv-SE.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<EmbeddedResource Include="Swarm\App_LocalResources\Logic.Swarm.DashboardTodos.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Logic.Swarm.DashboardTodos.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.Targets" />
</Project>
@@ -1,153 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1008
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Swarmops.Logic.Swarm.App_LocalResources {
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 Logic_Swarm_DashboardTodos {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Logic_Swarm_DashboardTodos() {
}
/// <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.Swarm.App_LocalResources.Logic.Swarm.DashboardTodos", typeof(Logic_Swarm_DashboardTodos).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 Attest cash advances {0}.
/// </summary>
internal static string Attest_CashAdvance_Many {
get {
return ResourceManager.GetString("Attest_CashAdvance_Many", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Attest cash advance #{0}.
/// </summary>
internal static string Attest_CashAdvance_One {
get {
return ResourceManager.GetString("Attest_CashAdvance_One", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Attest expense claims {0}.
/// </summary>
internal static string Attest_ExpenseClaim_Many {
get {
return ResourceManager.GetString("Attest_ExpenseClaim_Many", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Attest expense claim #{0}.
/// </summary>
internal static string Attest_ExpenseClaim_One {
get {
return ResourceManager.GetString("Attest_ExpenseClaim_One", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settle {0} payouts.
/// </summary>
internal static string Payout_Many {
get {
return ResourceManager.GetString("Payout_Many", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settle one payout.
/// </summary>
internal static string Payout_One {
get {
return ResourceManager.GetString("Payout_One", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settle {0} overdue payouts.
/// </summary>
internal static string Payout_Overdue_Many {
get {
return ResourceManager.GetString("Payout_Overdue_Many", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settle one overdue payout.
/// </summary>
internal static string Payout_Overdue_One {
get {
return ResourceManager.GetString("Payout_Overdue_One", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settle {0} urgent payouts.
/// </summary>
internal static string Payout_Urgent_Many {
get {
return ResourceManager.GetString("Payout_Urgent_Many", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Settle one urgent payout.
/// </summary>
internal static string Payout_Urgent_One {
get {
return ResourceManager.GetString("Payout_Urgent_One", resourceCulture);
}
}
}
}
@@ -1,151 +0,0 @@
<?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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Attest_CashAdvance_Many" xml:space="preserve">
<value>Attest cash advances {0}</value>
</data>
<data name="Attest_CashAdvance_One" xml:space="preserve">
<value>Attest cash advance #{0}</value>
</data>
<data name="Attest_ExpenseClaim_Many" xml:space="preserve">
<value>Attest expense claims {0}</value>
</data>
<data name="Attest_ExpenseClaim_One" xml:space="preserve">
<value>Attest expense claim #{0}</value>
</data>
<data name="Payout_Many" xml:space="preserve">
<value>Settle {0} payouts</value>
<comment>Instead of "Pay out payout". That sounds too repetitititive.</comment>
</data>
<data name="Payout_One" xml:space="preserve">
<value>Settle one payout</value>
</data>
<data name="Payout_Overdue_Many" xml:space="preserve">
<value>Settle {0} overdue payouts</value>
</data>
<data name="Payout_Overdue_One" xml:space="preserve">
<value>Settle one overdue payout</value>
</data>
<data name="Payout_Urgent_Many" xml:space="preserve">
<value>Settle {0} urgent payouts</value>
</data>
<data name="Payout_Urgent_One" xml:space="preserve">
<value>Settle one urgent payout</value>
</data>
</root>
+10 -10
View File
@@ -73,11 +73,11 @@ namespace Swarmops.Logic.Swarm
if (expenseClaimIds.Count > 1)
{
todo.Description = String.Format(App_LocalResources.DashboardTodos.Attest_ExpenseClaim_Many, Formatting.GenerateRangeString(expenseClaimIds));
todo.Description = String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Attest_ExpenseClaim_Many, Formatting.GenerateRangeString(expenseClaimIds));
}
else
{
todo.Description = String.Format(App_LocalResources.DashboardTodos.Attest_ExpenseClaim_One, expenseClaimIds[0]);
todo.Description = String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Attest_ExpenseClaim_One, expenseClaimIds[0]);
}
todo.Icon = "/Images/PageIcons/iconshock-stamped-paper-16px.png";
@@ -130,11 +130,11 @@ namespace Swarmops.Logic.Swarm
if (cashAdvanceIds.Count > 1)
{
todo.Description = String.Format(App_LocalResources.DashboardTodos.Attest_CashAdvance_Many, Formatting.GenerateRangeString(cashAdvanceIds));
todo.Description = String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Attest_CashAdvance_Many, Formatting.GenerateRangeString(cashAdvanceIds));
}
else
{
todo.Description = String.Format(App_LocalResources.DashboardTodos.Attest_CashAdvance_One, cashAdvanceIds[0]);
todo.Description = String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Attest_CashAdvance_One, cashAdvanceIds[0]);
}
todo.Icon = "/Images/PageIcons/iconshock-stamped-paper-16px.png";
@@ -189,18 +189,18 @@ namespace Swarmops.Logic.Swarm
if (payoutCount > 0)
{
todoNormal.Description = payoutCount > 1
? String.Format(App_LocalResources.DashboardTodos.Payout_Many,
? String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Many,
payoutCount)
: App_LocalResources.DashboardTodos.Payout_One;
: App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_One;
this.Add(todoNormal);
}
if (overduePayoutCount > 0)
{
todoOverdue.Description = overduePayoutCount > 1
? String.Format(App_LocalResources.DashboardTodos.Payout_Overdue_Many,
? String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Overdue_Many,
payoutCount)
: App_LocalResources.DashboardTodos.Payout_Overdue_One;
: App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Overdue_One;
todoOverdue.Urgency = TodoUrgency.Red;
this.Add(todoOverdue);
}
@@ -208,9 +208,9 @@ namespace Swarmops.Logic.Swarm
if (urgentPayoutCount > 0)
{
todoUrgent.Description = overduePayoutCount > 1
? String.Format(App_LocalResources.DashboardTodos.Payout_Urgent_Many,
? String.Format(App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Urgent_Many,
payoutCount)
: App_LocalResources.DashboardTodos.Payout_Urgent_One;
: App_GlobalResources.Logic_Swarm_DashboardTodos.Payout_Urgent_One;
todoUrgent.Urgency = TodoUrgency.Yellow;
this.Add(todoUrgent);
}