diff --git a/src/Umbraco.Web.UI.Client/src/common/directives/validation/valpropertymsg.directive.js b/src/Umbraco.Web.UI.Client/src/common/directives/validation/valpropertymsg.directive.js
index 39d903d85e..0369b4bd2e 100644
--- a/src/Umbraco.Web.UI.Client/src/common/directives/validation/valpropertymsg.directive.js
+++ b/src/Umbraco.Web.UI.Client/src/common/directives/validation/valpropertymsg.directive.js
@@ -9,7 +9,7 @@
* and when an error is detected for this property we'll show the error message.
* In order for this directive to work, the valFormManager directive must be placed on the containing form.
**/
-function valPropertyMsg(serverValidationManager) {
+function valPropertyMsg(serverValidationManager, localizationService) {
return {
require: ['^^form', '^^valFormManager', '^^umbProperty', '?^^umbVariantContent'],
@@ -40,6 +40,11 @@ function valPropertyMsg(serverValidationManager) {
scope.currentProperty = currentProperty;
var currentCulture = currentProperty.culture;
+ var labels = {};
+ localizationService.localize("errors_propertyHasErrors").then(function (data) {
+ labels.propertyHasErrors = data;
+ });
+
if (umbVariantCtrl) {
//if we are inside of an umbVariantContent directive
@@ -68,13 +73,11 @@ function valPropertyMsg(serverValidationManager) {
return err.errorMsg;
}
else {
- // TODO: localize
- return scope.currentProperty.propertyErrorMessage ? scope.currentProperty.propertyErrorMessage : "Property has errors";
+ return scope.currentProperty.propertyErrorMessage ? scope.currentProperty.propertyErrorMessage : labels.propertyHasErrors;
}
}
- // TODO: localize
- return "Property has errors";
+ return labels.propertyHasErrors;
}
// We need to subscribe to any changes to our model (based on user input)
diff --git a/src/Umbraco.Web.UI/Umbraco/config/lang/da.xml b/src/Umbraco.Web.UI/Umbraco/config/lang/da.xml
index c4bffedb28..64fa6e458a 100644
--- a/src/Umbraco.Web.UI/Umbraco/config/lang/da.xml
+++ b/src/Umbraco.Web.UI/Umbraco/config/lang/da.xml
@@ -565,6 +565,7 @@
Der er ingen aktive styles eller formatteringer på denne side
Du skal stå til venstre for de 2 celler du ønsker at samle!
Du kan ikke opdele en celle, som ikke allerede er delt.
+ Denne egenskab er ugyldig
Om
diff --git a/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml b/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
index 8c8a3d9434..3c760fa1c2 100644
--- a/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
+++ b/src/Umbraco.Web.UI/Umbraco/config/lang/en.xml
@@ -593,6 +593,7 @@
No active styles available
Please place cursor at the left of the two cells you wish to merge
You cannot split a cell that hasn't been merged.
+ This property is invalid
About
diff --git a/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml b/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
index 091d97f4cc..1ddc415db0 100644
--- a/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
+++ b/src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
@@ -596,6 +596,7 @@
No active styles available
Please place cursor at the left of the two cells you wish to merge
You cannot split a cell that hasn't been merged.
+ This property is invalid
Options