diff --git a/app/assets/javascripts/controllers/admin/events.js.erb b/app/assets/javascripts/controllers/admin/events.js.erb index ff49f310d..eb842577c 100644 --- a/app/assets/javascripts/controllers/admin/events.js.erb +++ b/app/assets/javascripts/controllers/admin/events.js.erb @@ -483,6 +483,7 @@ Application.Controllers.controller('NewEventController', ['$scope', '$state', 'C { label: _t('app.admin.events_new.every_year'), value: 'year' } ]; + // triggered when the new event form was submitted to the API and have received an answer $scope.onSubmited = function(content) { if ((content.id == null)) { $scope.alerts = []; @@ -527,17 +528,17 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', ' // List of age ranges $scope.ageRanges = ageRangesPromise; - // Default edit mode for periodic event + // Default edit-mode for periodic event $scope.editMode = 'single'; - // show edit mode modal if event is recurrence + // show edit-mode modal if event is recurrent $scope.isShowEditModeModal = $scope.event.recurrence_events.length > 0; $scope.editRecurrent = function (e) { if ($scope.isShowEditModeModal && $scope.event.recurrence_events.length > 0) { e.preventDefault(); - // open a choice edit mode dialog + // open a choice edit-mode dialog const modalInstance = $uibModal.open({ animation: true, templateUrl: '<%= asset_path "events/editRecurrent.html" %>', @@ -547,7 +548,7 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', ' editMode: function () { return $scope.editMode; } } }); - // submit form event by edit mode + // submit form event by edit-mode modalInstance.result.then(function(res) { $scope.isShowEditModeModal = false; $scope.editMode = res.editMode; @@ -556,6 +557,7 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', ' } }; + // triggered when the edit event form was submitted to the API and have received an answer $scope.onSubmited = function(data) { if (data.total === data.updated) { if (data.updated > 1) { @@ -623,7 +625,7 @@ Application.Controllers.controller('EditEventController', ['$scope', '$state', ' ]); /** - * Controller used in the event edit mode modal window + * Controller used in the event edit-mode modal window */ Application.Controllers.controller('EditRecurrentEventController', ['$scope', '$uibModalInstance', 'editMode', 'growl', '_t', function ($scope, $uibModalInstance, editMode, growl, _t) { diff --git a/config/locales/app.admin.en.yml b/config/locales/app.admin.en.yml index 123bbb50e..de0b1b14e 100644 --- a/config/locales/app.admin.en.yml +++ b/config/locales/app.admin.en.yml @@ -231,7 +231,7 @@ en: # edit an existing event edit_the_event: "Edit the event" confirmation_required: "Confirmation required" - edit_recurring_event: "What do you want to update this periodic event ?" + edit_recurring_event: "You're about to update a periodic event. What do you want to update ?" edit_this_event: "Only this event" edit_this_and_next: "This event and the following" edit_all: "All events" diff --git a/config/locales/app.admin.es.yml b/config/locales/app.admin.es.yml index cb58b21d2..c161b1bfc 100644 --- a/config/locales/app.admin.es.yml +++ b/config/locales/app.admin.es.yml @@ -231,7 +231,7 @@ es: # edit an existing event edit_the_event: "Editar el evento" confirmation_required: "Confirmation required" - edit_recurring_event: "What do you want to update this periodic event ?" + edit_recurring_event: "You're about to update a periodic event. What do you want to update ?" edit_this_event: "Only this event" edit_this_and_next: "This event and the following" edit_all: "All events" diff --git a/config/locales/app.admin.fr.yml b/config/locales/app.admin.fr.yml index 1347c9b23..011521004 100644 --- a/config/locales/app.admin.fr.yml +++ b/config/locales/app.admin.fr.yml @@ -231,7 +231,7 @@ fr: # modifier un évènement existant edit_the_event: "Éditer l'évènement" confirmation_required: "Confirmation requise" - edit_recurring_event: "Que voulez-vous modifier cet évènement périodique ?" + edit_recurring_event: "Vous êtes sur le point de modifier un évènement périodique. Que voulez-vous modifier ?" edit_this_event: "Uniquement cet évènement" edit_this_and_next: "Cet évènement et tous les suivants" edit_all: "Tous les évènements" diff --git a/config/locales/app.admin.pt.yml b/config/locales/app.admin.pt.yml index 00ece3559..5a73eeb4e 100755 --- a/config/locales/app.admin.pt.yml +++ b/config/locales/app.admin.pt.yml @@ -231,7 +231,7 @@ pt: # edit an existing event edit_the_event: "Editar evento" confirmation_required: "Confirmation required" - edit_recurring_event: "What do you want to update this periodic event ?" + edit_recurring_event: "You're about to update a periodic event. What do you want to update ?" edit_this_event: "Only this event" edit_this_and_next: "This event and the following" edit_all: "All events"