Added some loc

This commit is contained in:
Rick Falkvinge
2017-01-04 12:49:23 +01:00
parent 307750d6f6
commit 12091d35a4
3 changed files with 14 additions and 4 deletions
+9
View File
@@ -141,6 +141,15 @@ namespace Resources.Pages {
}
}
/// <summary>
/// Looks up a localized string similar to You&apos;re currently using the Sandbox. Where would you like a test message sent?.
/// </summary>
internal static string SendMassMessage_Sandbox_EnterAddress {
get {
return ResourceManager.GetString("SendMassMessage_Sandbox_EnterAddress", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Send.
/// </summary>
+1 -4
View File
@@ -59,13 +59,10 @@
// Prompt for an address to send to
// This should preferably be in a mod on just Sandbox and not in code everywhere
alertify.prompt("You're currently using the Sandbox. Where would you like a test message sent?", // TODO: LOC
alertify.prompt(SwarmopsJS.unescape('<%=this.Localized_Sandbox_EnterAddress%>'),
function(evt, value) {
testMessageSandboxAddress = value; // may need sanitation
onClickTest(); // rerun with value set
},
function() {
alertify.log('Canceled.');
});
return null; // do not process at this time, wait for async response
@@ -167,5 +167,9 @@ namespace Swarmops.Frontend.Pages.Comms
get { return JavascriptEscape(Resources.Pages.Comms.SendMassMessage_Error_EmptySubject); }
}
public string Localized_Sandbox_EnterAddress
{
get { return JavascriptEscape(Resources.Pages.Comms.SendMassMessage_Sandbox_EnterAddress); }
}
}
}