Testing build after clean

This commit is contained in:
Rick Falkvinge
2013-06-16 18:45:06 +00:00
parent 4fc87c9783
commit 9e961ddc4b
3 changed files with 11 additions and 6 deletions
@@ -39,9 +39,8 @@ namespace Swarmops.Logic.Communications.Transmission
System.Reflection.Assembly.
GetExecutingAssembly());
// TODO: Pick culture
// TODO: Expand macros
return resourceManager.GetString(this.SubjectResource);
return ExpandMacros(resourceManager.GetString(this.SubjectResource));
}
public string GetBody()
@@ -50,9 +49,15 @@ namespace Swarmops.Logic.Communications.Transmission
System.Reflection.Assembly.
GetExecutingAssembly());
// TODO: Pick culture
// TODO: Expand macros
return resourceManager.GetString(this.BodyResource);
return ExpandMacros(resourceManager.GetString(this.BodyResource));
}
public string ExpandMacros (string input)
{
// TODO: Replace all, of course
return input.Replace("[HostName]", System.Net.Dns.GetHostName());
}
#region Implementation of ICommsRenderer
+1 -1
View File
@@ -61,7 +61,7 @@ namespace Swarmops.Logic {
}
/// <summary>
/// Looks up a localized string similar to Swarmops Backend version [VERSION] on host [HOSTNAME] has successfully started and connected to database and notification frameworks..
/// 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 Notifications_System_Startup_Body {
get {
+1 -1
View File
@@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="Notifications_System_Startup_Body" xml:space="preserve">
<value>Swarmops Backend version [VERSION] on host [HOSTNAME] has successfully started and connected to database and notification frameworks.</value>
<value>Swarmops Backend version [SwarmopsVersion] on host [HostName] has successfully started and connected to database and notification frameworks.</value>
</data>
<data name="Notifications_System_Startup_Subject" xml:space="preserve">
<value>Swarmops Backend operational</value>