diff --git a/app/assets/javascripts/controllers/admin/calendar.coffee.erb b/app/assets/javascripts/controllers/admin/calendar.coffee.erb index 31574c081..bb9764117 100644 --- a/app/assets/javascripts/controllers/admin/calendar.coffee.erb +++ b/app/assets/javascripts/controllers/admin/calendar.coffee.erb @@ -151,7 +151,7 @@ Application.Controllers.controller "AdminCalendarController", ["$scope", "$state resolve: object: -> title: _t('admin_calendar.confirmation_required') - msg: if locked then _t("admin_calendar.do_you_really_want_to_allow_reservations") else _t("admin_calendar.do_you_really_want_to_block_this_slot_html") + msg: if locked then _t("admin_calendar.do_you_really_want_to_allow_reservations") else _t("admin_calendar.do_you_really_want_to_block_this_slot") , -> # the admin has confirmed, lock/unlock the slot Availability.lock {id: $scope.availability.id}, {lock: !locked} diff --git a/config/locales/app.admin.en.yml b/config/locales/app.admin.en.yml index abfae4858..f26c9f1fe 100644 --- a/config/locales/app.admin.en.yml +++ b/config/locales/app.admin.en.yml @@ -48,6 +48,17 @@ en: unable_to_delete_the_slot_START-END_because_it_s_already_reserved_by_a_member: "Unable to delete the slot {{START}} - {{END}} because it's already reserved by a member" # angular interpolation you_should_select_at_least_a_machine: "You should select at least one machine on this slot." export_is_running_you_ll_be_notified_when_its_ready: "Export is running. You'll be notified when it's ready." + actions: "Actions" + block_reservations: "Block reservations" + do_you_really_want_to_block_this_slot: "Do you really want to block new reservations on this slot? It will become invisible to users." + locking_success: "Slot successfully locked, it won't appear any longer in the user calendar" + locking_failed: "An error occurred. Slot locking has failed" + allow_reservations: "Allow reservations" + do_you_really_want_to_allow_reservations: "Do you really want to allow booking again on this slot? It will become visible for the users." + unlocking_success: "Slot successfully unlocked, it will appear again in the user calendar" + unlocking_failed: "An error occurred. Slot unlocking has failed" + reservations_locked: "Booking is blocked" + unlockable_because_reservations: "Unable to block booking on this slot because some uncancelled reservations exist on it." project_elements: # management of the projects' components diff --git a/config/locales/app.admin.fr.yml b/config/locales/app.admin.fr.yml index 5c6bd48aa..49fe46df4 100644 --- a/config/locales/app.admin.fr.yml +++ b/config/locales/app.admin.fr.yml @@ -50,7 +50,7 @@ fr: export_is_running_you_ll_be_notified_when_its_ready: "L'export est en cours. Vous serez notifié lorsqu'il sera prêt." actions: "Actions" block_reservations: "Bloquer les réservations" - do_you_really_want_to_block_this_slot_html: "Êtes vous sur de vouloir bloquer les nouvelles réservations sur ce créneau ? Il deviendra alors invisible pour les utilisateurs.
Attention : cela n'annulera pas les réservations existantes." + do_you_really_want_to_block_this_slot: "Êtes vous sur de vouloir bloquer les nouvelles réservations sur ce créneau ? Il deviendra alors invisible pour les utilisateurs." locking_success: "Le créneau a bien été verrouillé, il n'apparaitra plus dans le calendrier utilisateur" locking_failed: "Une erreur est survenue. Le verrouillage du créneau a échoué" allow_reservations: "Autoriser les réservations" diff --git a/config/locales/app.admin.pt.yml b/config/locales/app.admin.pt.yml index 5eebc6d9a..0938b9c0e 100755 --- a/config/locales/app.admin.pt.yml +++ b/config/locales/app.admin.pt.yml @@ -48,6 +48,17 @@ pt: unable_to_delete_the_slot_START-END_because_it_s_already_reserved_by_a_member: "Não é possível deletar o slot {{START}} - {{END}} porque já foi reservado por um membro" # angular interpolation you_should_select_at_least_a_machine: "Você deveria selecionar a última máquina neste slot." export_is_running_you_ll_be_notified_when_its_ready: "A Exportação está em andamento. Você será notificado quando terminar." + actions: "Ações" + block_reservations: "Impedir reservas" + do_you_really_want_to_block_this_slot: "Você realmente quer bloquear novas reservas neste slot? Isso se tornará invisível para os usuários." + locking_success: "Slot bloqueado com êxito, ela não aparecerá mais tempo no calendário do usuário" + locking_failed: "Um erro ocorreu. O bloqueio do slot falhou" + allow_reservations: "Permitir a reserva" + do_you_really_want_to_allow_reservations: "Você realmente quer permitir a reserva novamente neste slot? Será visível para os usuários." + unlocking_success: "Slot desbloqueado com sucesso, ele aparecerá novamente no calendário do usuário" + unlocking_failed: "Um erro ocorreu. O desbloqueio do slot falhou" + reservations_locked: "Reserva é bloqueado" + unlockable_because_reservations: "Não é possível bloquear a reserva neste slot porque existem algumas reservas não cancelados nele." project_elements: # management of the projects' components