[i18n] Fix watchers component

stable
David Barragán Merino 2015-04-29 14:20:50 +02:00
parent 1449b4eaaa
commit e1e89ad48f
6 changed files with 14 additions and 9 deletions

View File

@ -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])
#############################################################################

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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}}")
<% }; %>
<% } %>
<% }); %>