Localized a string constant

This commit is contained in:
Rick Falkvinge
2016-10-01 18:20:00 +02:00
parent 0a10af0888
commit 4e04cfe5e6
4 changed files with 18 additions and 1 deletions
+5
View File
@@ -61,5 +61,10 @@ namespace Swarmops.Frontend
{
get { return JavascriptEscape (Resources.Global.Error_AjaxCallException); }
}
public string Localized_AjaxGeneralErrorSettingValue
{
get { return JavascriptEscape (Resources.Global.Error_UnspecifiedAjaxSetValue); }
}
}
}
+9
View File
@@ -141,6 +141,15 @@ namespace Resources {
}
}
/// <summary>
/// Looks up a localized string similar to There was an unspecified error attempting to set this value..
/// </summary>
internal static string Error_UnspecifiedAjaxSetValue {
get {
return ResourceManager.GetString("Error_UnspecifiedAjaxSetValue", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Account.
/// </summary>
+3
View File
@@ -733,4 +733,7 @@
<value>This field cannot be empty.</value>
<comment>Displayed as error when emptying fields like your name</comment>
</data>
<data name="Error_UnspecifiedAjaxSetValue" xml:space="preserve">
<value>There was an unspecified error attempting to set this value.</value>
</data>
</root>
+1 -1
View File
@@ -36,7 +36,7 @@
if (msg.DisplayMessage != null) {
alertify.error(msg.DisplayMessage);
} else {
alertify.error("There was an error attempting to set this value."); // TODO: Localize
alertify.error(SwarmopsJS.unescape('<%= this.Localized_AjaxGeneralErrorSettingValue %>'));
}
$(this).css('background-color', '#FFA0A0');
} else {