Added some loc

This commit is contained in:
Rick Falkvinge
2017-01-04 12:34:39 +01:00
parent 6554fc3cb0
commit 307750d6f6
7 changed files with 41 additions and 5 deletions
+2 -1
View File
@@ -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)
{
@@ -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&apos; 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
View File
@@ -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>
+2 -2
View File
@@ -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); }
}
}
}