[i18n] Fix watchers component
parent
1449b4eaaa
commit
e1e89ad48f
|
@ -156,7 +156,7 @@ module.directive("tgCreatedByDisplay", ["$tgTemplate", "$compile", CreatedByDisp
|
||||||
## Watchers directive
|
## 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
|
# You have to include a div with the tg-lb-watchers directive in the page
|
||||||
# where use this directive
|
# where use this directive
|
||||||
template = $template.get("common/components/watchers.html", true)
|
template = $template.get("common/components/watchers.html", true)
|
||||||
|
@ -215,7 +215,7 @@ WatchersDirective = ($rootscope, $confirm, $repo, $qqueue, $template, $compile)
|
||||||
target = angular.element(event.currentTarget)
|
target = angular.element(event.currentTarget)
|
||||||
watcherId = target.data("watcher-id")
|
watcherId = target.data("watcher-id")
|
||||||
|
|
||||||
title = "Delete watcher"
|
title = $translate.instant("COMMON.WATCHERS.TITLE_LIGHTBOX_DELETE_WARTCHER")
|
||||||
message = $scope.usersById[watcherId].full_name_display
|
message = $scope.usersById[watcherId].full_name_display
|
||||||
|
|
||||||
$confirm.askOnDelete(title, message).then (finish) =>
|
$confirm.askOnDelete(title, message).then (finish) =>
|
||||||
|
@ -250,7 +250,7 @@ WatchersDirective = ($rootscope, $confirm, $repo, $qqueue, $template, $compile)
|
||||||
return {link:link, require:"ngModel"}
|
return {link:link, require:"ngModel"}
|
||||||
|
|
||||||
module.directive("tgWatchers", ["$rootScope", "$tgConfirm", "$tgRepo", "$tgQqueue", "$tgTemplate", "$compile",
|
module.directive("tgWatchers", ["$rootScope", "$tgConfirm", "$tgRepo", "$tgQqueue", "$tgTemplate", "$compile",
|
||||||
WatchersDirective])
|
"$translate", WatchersDirective])
|
||||||
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
|
@ -77,7 +77,8 @@
|
||||||
"WATCHERS": {
|
"WATCHERS": {
|
||||||
"ADD": "Add watcher",
|
"ADD": "Add watcher",
|
||||||
"TITLE": "watchers",
|
"TITLE": "watchers",
|
||||||
"DELETE": "delete watcher"
|
"DELETE": "Delete watcher",
|
||||||
|
"TITLE_LIGHTBOX_DELETE_WARTCHER": "Delete watcher..."
|
||||||
},
|
},
|
||||||
"CUSTOM_ATTRIBUTES": {
|
"CUSTOM_ATTRIBUTES": {
|
||||||
"CUSTOM_FIELDS": "Custom Fields",
|
"CUSTOM_FIELDS": "Custom Fields",
|
||||||
|
|
|
@ -75,7 +75,8 @@
|
||||||
"WATCHERS": {
|
"WATCHERS": {
|
||||||
"ADD": "Añadir un observador...",
|
"ADD": "Añadir un observador...",
|
||||||
"TITLE": "observadores",
|
"TITLE": "observadores",
|
||||||
"DELETE": "eliminar observador"
|
"DELETE": "Eliminar el observador",
|
||||||
|
"TITLE_LIGHTBOX_DELETE_WARTCHER": "Eliminar el observador..."
|
||||||
},
|
},
|
||||||
"CUSTOM_ATTRIBUTES": {
|
"CUSTOM_ATTRIBUTES": {
|
||||||
"CUSTOM_FIELDS": "Atributo Personalizados",
|
"CUSTOM_FIELDS": "Atributo Personalizados",
|
||||||
|
|
|
@ -75,7 +75,8 @@
|
||||||
"WATCHERS": {
|
"WATCHERS": {
|
||||||
"ADD": "Lisää vahti",
|
"ADD": "Lisää vahti",
|
||||||
"TITLE": "vahdit",
|
"TITLE": "vahdit",
|
||||||
"DELETE": "poista vahti"
|
"DELETE": "Poista vahti",
|
||||||
|
"TITLE_LIGHTBOX_DELETE_WARTCHER": "Poista vahti..."
|
||||||
},
|
},
|
||||||
"CUSTOM_ATTRIBUTES": {
|
"CUSTOM_ATTRIBUTES": {
|
||||||
"CUSTOM_FIELDS": "Omat kentät",
|
"CUSTOM_FIELDS": "Omat kentät",
|
||||||
|
|
|
@ -65,7 +65,8 @@
|
||||||
"DELETE_ASSIGNMENT": "Supprimer l'affectation",
|
"DELETE_ASSIGNMENT": "Supprimer l'affectation",
|
||||||
"REMOVE_ASSIGNED": "Supprimer l'affectation",
|
"REMOVE_ASSIGNED": "Supprimer l'affectation",
|
||||||
"TOO_MANY": "...trop d'utilisateurs ; filtrez davantage",
|
"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": {
|
"STATUS": {
|
||||||
"CLOSED": "Clos",
|
"CLOSED": "Clos",
|
||||||
|
@ -74,7 +75,8 @@
|
||||||
"WATCHERS": {
|
"WATCHERS": {
|
||||||
"ADD": "Ajouter un observateur",
|
"ADD": "Ajouter un observateur",
|
||||||
"TITLE": "Observateurs",
|
"TITLE": "Observateurs",
|
||||||
"DELETE": "supprimer l'observateur"
|
"DELETE": "Supprimer l'observateur",
|
||||||
|
"TITLE_LIGHTBOX_DELETE_WARTCHER": "Supprimer l'observateur..."
|
||||||
},
|
},
|
||||||
"CUSTOM_ATTRIBUTES": {
|
"CUSTOM_ATTRIBUTES": {
|
||||||
"CUSTOM_FIELDS": "Champs personnalisés",
|
"CUSTOM_FIELDS": "Champs personnalisés",
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
span <%- watcher.full_name_display %>
|
span <%- watcher.full_name_display %>
|
||||||
|
|
||||||
<% if(isEditable){ %>
|
<% 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}}")
|
||||||
<% }; %>
|
<% }; %>
|
||||||
<% } %>
|
<% } %>
|
||||||
<% }); %>
|
<% }); %>
|
||||||
|
|
Loading…
Reference in New Issue