diff --git a/app/assets/javascripts/admin/order_cycles/controllers/create.js.coffee b/app/assets/javascripts/admin/order_cycles/controllers/create.js.coffee index e0f7cf96b6..f5bc6aeb4d 100644 --- a/app/assets/javascripts/admin/order_cycles/controllers/create.js.coffee +++ b/app/assets/javascripts/admin/order_cycles/controllers/create.js.coffee @@ -12,7 +12,7 @@ angular.module('admin.orderCycles') $scope.StatusMessage = StatusMessage $scope.$watch 'order_cycle_form.$dirty', (newValue) -> - StatusMessage.display 'notice', 'You have unsaved changes' if newValue + StatusMessage.display 'notice', t("admin.unsaved_changes") if newValue $scope.loaded = -> Enterprise.loaded && EnterpriseFee.loaded && OrderCycle.loaded diff --git a/config/locales/en-GB.yml b/config/locales/en-GB.yml index f48248ddd7..8215019a84 100644 --- a/config/locales/en-GB.yml +++ b/config/locales/en-GB.yml @@ -70,6 +70,8 @@ en-GB: clear_all: Clear All start_date: "Start Date" end_date: "End Date" + unsaved_changes: "You have unsaved changes" + form_invalid: "Form contains missing or invalid fields" columns: Columns actions: Actions viewing: "Viewing: %{current_view_name}" diff --git a/config/locales/en.yml b/config/locales/en.yml index 40a3549d60..e16099fe60 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -105,6 +105,8 @@ en: clear_all: Clear All start_date: "Start Date" end_date: "End Date" + unsaved_changes: "You have unsaved changes" + form_invalid: "Form contains missing or invalid fields" columns: Columns actions: Actions