diff --git a/app/coffee/modules/common/components.coffee b/app/coffee/modules/common/components.coffee index 73bb915f..a9a19965 100644 --- a/app/coffee/modules/common/components.coffee +++ b/app/coffee/modules/common/components.coffee @@ -156,7 +156,7 @@ module.directive("tgCreatedByDisplay", ["$tgTemplate", "$compile", CreatedByDisp ## Watchers directive ############################################################################# -WatchersDirective = ($rootscope, $confirm, $repo, $qqueue, $template, $compile) -> +WatchersDirective = ($rootscope, $confirm, $repo, $qqueue, $template, $compile, $translate) -> # You have to include a div with the tg-lb-watchers directive in the page # where use this directive template = $template.get("common/components/watchers.html", true) @@ -215,7 +215,7 @@ WatchersDirective = ($rootscope, $confirm, $repo, $qqueue, $template, $compile) target = angular.element(event.currentTarget) watcherId = target.data("watcher-id") - title = "Delete watcher" + title = $translate.instant("COMMON.WATCHERS.TITLE_LIGHTBOX_DELETE_WARTCHER") message = $scope.usersById[watcherId].full_name_display $confirm.askOnDelete(title, message).then (finish) => @@ -250,7 +250,7 @@ WatchersDirective = ($rootscope, $confirm, $repo, $qqueue, $template, $compile) return {link:link, require:"ngModel"} module.directive("tgWatchers", ["$rootScope", "$tgConfirm", "$tgRepo", "$tgQqueue", "$tgTemplate", "$compile", - WatchersDirective]) + "$translate", WatchersDirective]) ############################################################################# diff --git a/app/locales/locale-en.json b/app/locales/locale-en.json index 61e7dcdd..905183df 100644 --- a/app/locales/locale-en.json +++ b/app/locales/locale-en.json @@ -77,7 +77,8 @@ "WATCHERS": { "ADD": "Add watcher", "TITLE": "watchers", - "DELETE": "delete watcher" + "DELETE": "Delete watcher", + "TITLE_LIGHTBOX_DELETE_WARTCHER": "Delete watcher..." }, "CUSTOM_ATTRIBUTES": { "CUSTOM_FIELDS": "Custom Fields", diff --git a/app/locales/locale-es.json b/app/locales/locale-es.json index 3bbdfdc2..6c6a7381 100644 --- a/app/locales/locale-es.json +++ b/app/locales/locale-es.json @@ -75,7 +75,8 @@ "WATCHERS": { "ADD": "Añadir un observador...", "TITLE": "observadores", - "DELETE": "eliminar observador" + "DELETE": "Eliminar el observador", + "TITLE_LIGHTBOX_DELETE_WARTCHER": "Eliminar el observador..." }, "CUSTOM_ATTRIBUTES": { "CUSTOM_FIELDS": "Atributo Personalizados", diff --git a/app/locales/locale-fi.json b/app/locales/locale-fi.json index 3354da20..dfb3aeca 100644 --- a/app/locales/locale-fi.json +++ b/app/locales/locale-fi.json @@ -75,7 +75,8 @@ "WATCHERS": { "ADD": "Lisää vahti", "TITLE": "vahdit", - "DELETE": "poista vahti" + "DELETE": "Poista vahti", + "TITLE_LIGHTBOX_DELETE_WARTCHER": "Poista vahti..." }, "CUSTOM_ATTRIBUTES": { "CUSTOM_FIELDS": "Omat kentät", diff --git a/app/locales/locale-fr.json b/app/locales/locale-fr.json index 015e3ad3..9a4b9867 100644 --- a/app/locales/locale-fr.json +++ b/app/locales/locale-fr.json @@ -65,7 +65,8 @@ "DELETE_ASSIGNMENT": "Supprimer l'affectation", "REMOVE_ASSIGNED": "Supprimer l'affectation", "TOO_MANY": "...trop d'utilisateurs ; filtrez davantage", - "CONFIRM_UNASSIGNED": "Etes-vous sûr de vouloir continuer sans affectation ?" + "CONFIRM_UNASSIGNED": "Etes-vous sûr de vouloir continuer sans affectation ?", + "TITLE_ACTION_EDIT_ASSIGNMENT": "Edit assignment" }, "STATUS": { "CLOSED": "Clos", @@ -74,7 +75,8 @@ "WATCHERS": { "ADD": "Ajouter un observateur", "TITLE": "Observateurs", - "DELETE": "supprimer l'observateur" + "DELETE": "Supprimer l'observateur", + "TITLE_LIGHTBOX_DELETE_WARTCHER": "Supprimer l'observateur..." }, "CUSTOM_ATTRIBUTES": { "CUSTOM_FIELDS": "Champs personnalisés", diff --git a/app/partials/common/components/watchers.jade b/app/partials/common/components/watchers.jade index e83fc025..b11a4aeb 100644 --- a/app/partials/common/components/watchers.jade +++ b/app/partials/common/components/watchers.jade @@ -16,7 +16,7 @@ span <%- watcher.full_name_display %> <% if(isEditable){ %> - a.icon.icon-delete(data-watcher-id!="<%- watcher.id %>" href="" title="{{'WATCHERS.DELETE' | translate}}") + a.icon.icon-delete(data-watcher-id!="<%- watcher.id %>" href="" title="{{'COMMON.WATCHERS.DELETE' | translate}}") <% }; %> <% } %> <% }); %>