Localized a string constant
This commit is contained in:
@@ -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
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user