Added some loc
This commit is contained in:
@@ -88,7 +88,8 @@ namespace Swarmops.Backend
|
||||
BotLog.Write(2, "CommsTx", "--closing");
|
||||
|
||||
OutboundComm reloadedComm = OutboundComm.FromIdentity(comm.Identity);
|
||||
// object doesn't update as we get results
|
||||
// active object doesn't update as we get results, so need to load
|
||||
// from database to get final counts of successes and fails
|
||||
|
||||
if (comm.RecipientCount > 1 && comm.SenderPersonId != 0)
|
||||
{
|
||||
|
||||
+1
-1
@@ -572,7 +572,7 @@ namespace Swarmops.Logic.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Your message to [GeographyName] has been sent to all scheduled recipients. Of the [RecipientCount] planned recipients, [RecipientsSuccess] succeeded from Swarmops' horizon. (These can fail later for a number of reasons, from broken computers to hospitalized recipients.)
|
||||
/// Looks up a localized string similar to Your message to [GeographyName] has been sent to all scheduled recipients. Out of the [RecipientCount] planned recipients, [RecipientsSuccess] succeeded as far as we can tell -- remember that mail can be undelivered or unread later for a number of reasons.
|
||||
///
|
||||
///Time spent resolving: [ResolvingTime].
|
||||
///Time spent transmitting: [TransmissionTime].
|
||||
|
||||
@@ -326,7 +326,7 @@ This mail was sent to [Addressee] from [OrganizationName]. If you do not desire
|
||||
<value>[[OrganizationName]] Comm recipients determined for [GeographyName]: [RecipientCount]</value>
|
||||
</data>
|
||||
<data name="OutboundComm_Sent_Body" xml:space="preserve">
|
||||
<value>Your message to [GeographyName] has been sent to all scheduled recipients. Of the [RecipientCount] planned recipients, [RecipientsSuccess] succeeded from Swarmops' horizon. (These can fail later for a number of reasons, from broken computers to hospitalized recipients.)
|
||||
<value>Your message to [GeographyName] has been sent to all scheduled recipients. Out of the [RecipientCount] planned recipients, [RecipientsSuccess] succeeded as far as we can tell -- remember that mail can be undelivered or unread later for a number of reasons.
|
||||
|
||||
Time spent resolving: [ResolvingTime].
|
||||
Time spent transmitting: [TransmissionTime].
|
||||
|
||||
+18
@@ -60,6 +60,24 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to You should write a message body before sending your message..
|
||||
/// </summary>
|
||||
internal static string SendMassMessage_Error_EmptyBody {
|
||||
get {
|
||||
return ResourceManager.GetString("SendMassMessage_Error_EmptyBody", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to You should write a message subject to go with your message..
|
||||
/// </summary>
|
||||
internal static string SendMassMessage_Error_EmptySubject {
|
||||
get {
|
||||
return ResourceManager.GetString("SendMassMessage_Error_EmptySubject", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Who are located in.
|
||||
/// </summary>
|
||||
|
||||
@@ -117,6 +117,12 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="SendMassMessage_Error_EmptyBody" xml:space="preserve">
|
||||
<value>You should write a message body before sending your message.</value>
|
||||
</data>
|
||||
<data name="SendMassMessage_Error_EmptySubject" xml:space="preserve">
|
||||
<value>You should write a message subject to go with your message.</value>
|
||||
</data>
|
||||
<data name="SendMassMessage_Geography" xml:space="preserve">
|
||||
<value>Who are located in</value>
|
||||
</data>
|
||||
|
||||
@@ -44,14 +44,14 @@
|
||||
|
||||
if (body.length < 2) // interpreted as empty
|
||||
{
|
||||
alertify.alert("You should write a message body before sending your message."); // TODO: LOC
|
||||
alertify.alert(SwarmopsJS.unescape('<%=this.Localized_Error_EmptyBody%>'));
|
||||
return false;
|
||||
}
|
||||
|
||||
if (subject.length < 2) // interpreted as empty
|
||||
{
|
||||
// TODO: ADD TRANSMISSION MODUS / ONLY TRIGGER ON MODUS WITH SUBJECTS
|
||||
alertify.alert("You should write a message subject to go with your message."); // TODO: LOC
|
||||
alertify.alert(SwarmopsJS.unescape('<%=this.Localized_Error_EmptySubject%>'));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -156,5 +156,16 @@ namespace Swarmops.Frontend.Pages.Comms
|
||||
{
|
||||
get { return JavascriptEscape (Resources.Pages.Comms.SendMassMessage_TestMessageResult); }
|
||||
}
|
||||
|
||||
public string Localized_Error_EmptyBody
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Pages.Comms.SendMassMessage_Error_EmptyBody); }
|
||||
}
|
||||
|
||||
public string Localized_Error_EmptySubject
|
||||
{
|
||||
get { return JavascriptEscape(Resources.Pages.Comms.SendMassMessage_Error_EmptySubject); }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user