Testing build after clean
This commit is contained in:
@@ -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
@@ -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 {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user