diff --git a/main/webapp/modules/core/scripts/util/date-time.js b/main/webapp/modules/core/scripts/util/date-time.js index 692eaa26e..a88b4eca7 100644 --- a/main/webapp/modules/core/scripts/util/date-time.js +++ b/main/webapp/modules/core/scripts/util/date-time.js @@ -96,7 +96,7 @@ DateTimeUtil.setIso8601Date = function(dateObject, string) { var d = string.match(DateTimeUtil._dateRegexp); if(!d) { - throw new Error("Invalid date string: " + string); + throw new Error($.i18n._('core-util-enc')["invalid-date"]+": " + string); } var sign = (d[1] == "-") ? -1 : 1; // BC or AD @@ -153,7 +153,7 @@ DateTimeUtil.setIso8601Time = function (dateObject, string) { var d = string.match(DateTimeUtil._timeRegexp); if(!d) { - SimileAjax.Debug.warn("Invalid time string: " + string); + SimileAjax.Debug.warn($.i18n._('core-util-enc')["invalid-date"]+": " + string); return false; } var hours = d[1]; diff --git a/main/webapp/modules/core/scripts/util/dialog.js b/main/webapp/modules/core/scripts/util/dialog.js index 54f748137..aef055271 100644 --- a/main/webapp/modules/core/scripts/util/dialog.js +++ b/main/webapp/modules/core/scripts/util/dialog.js @@ -113,7 +113,7 @@ DialogSystem.showBusy = function(message) { var body = $('