[i18n] translate TaskIsIocaineButonDirective
parent
5f60d6c71a
commit
fdb2b0e9bd
|
@ -26,6 +26,7 @@ groupBy = @.taiga.groupBy
|
||||||
|
|
||||||
module = angular.module("taigaTasks")
|
module = angular.module("taigaTasks")
|
||||||
|
|
||||||
|
|
||||||
#############################################################################
|
#############################################################################
|
||||||
## Task Detail Controller
|
## Task Detail Controller
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
@ -285,11 +286,12 @@ module.directive("tgTaskStatusButton", ["$rootScope", "$tgRepo", "$tgConfirm", "
|
||||||
"$compile", "$translate", TaskStatusButtonDirective])
|
"$compile", "$translate", TaskStatusButtonDirective])
|
||||||
|
|
||||||
|
|
||||||
TaskIsIocaineButtonDirective = ($rootscope, $tgrepo, $confirm, $loading, $qqueue) ->
|
TaskIsIocaineButtonDirective = ($rootscope, $tgrepo, $confirm, $loading, $qqueue, $compile) ->
|
||||||
template = _.template("""
|
template = _.template("""
|
||||||
<fieldset title="Feeling a bit overwhelmed by a task? Make sure others know about it by clicking on Iocaine when editing a task. It's possible to become immune to this (fictional) deadly poison by consuming small amounts over time just as it's possible to get better at what you do by occasionally taking on extra challenges!">
|
<fieldset title="{{ 'TASK.TITLE_ACTION_IOCAINE' | translate }}">
|
||||||
<label for="is-iocaine"
|
<label for="is-iocaine"
|
||||||
class="button button-gray is-iocaine <% if(isEditable){ %>editable<% }; %> <% if(isIocaine){ %>active<% }; %>">
|
translate="TASK.ACTION_IOCAINE"
|
||||||
|
class="button button-gray is-iocaine <% if(isEditable){ %>editable<% }; %> <% if(isIocaine){ %>active<% }; %>">
|
||||||
Iocaine
|
Iocaine
|
||||||
</label>
|
</label>
|
||||||
<input type="checkbox" id="is-iocaine" name="is-iocaine"/>
|
<input type="checkbox" id="is-iocaine" name="is-iocaine"/>
|
||||||
|
@ -309,7 +311,7 @@ TaskIsIocaineButtonDirective = ($rootscope, $tgrepo, $confirm, $loading, $qqueue
|
||||||
isIocaine: task.is_iocaine
|
isIocaine: task.is_iocaine
|
||||||
isEditable: isEditable()
|
isEditable: isEditable()
|
||||||
}
|
}
|
||||||
html = template(ctx)
|
html = $compile(template(ctx))($scope)
|
||||||
$el.html(html)
|
$el.html(html)
|
||||||
|
|
||||||
save = $qqueue.bindAdd (is_iocaine) =>
|
save = $qqueue.bindAdd (is_iocaine) =>
|
||||||
|
@ -351,4 +353,5 @@ TaskIsIocaineButtonDirective = ($rootscope, $tgrepo, $confirm, $loading, $qqueue
|
||||||
require: "ngModel"
|
require: "ngModel"
|
||||||
}
|
}
|
||||||
|
|
||||||
module.directive("tgTaskIsIocaineButton", ["$rootScope", "$tgRepo", "$tgConfirm", "$tgLoading", "$tgQqueue", TaskIsIocaineButtonDirective])
|
module.directive("tgTaskIsIocaineButton", ["$rootScope", "$tgRepo", "$tgConfirm", "$tgLoading", "$tgQqueue",
|
||||||
|
"$compile", TaskIsIocaineButtonDirective])
|
||||||
|
|
|
@ -657,7 +657,9 @@
|
||||||
"MILESTONE": "Sprint",
|
"MILESTONE": "Sprint",
|
||||||
"USER_STORY": "User story",
|
"USER_STORY": "User story",
|
||||||
"IS_IOCAINE": "Is iocaine"
|
"IS_IOCAINE": "Is iocaine"
|
||||||
}
|
},
|
||||||
|
"ACTION_IOCAINE": "Iocaine",
|
||||||
|
"TITLE_ACTION_IOCAINE": "Feeling a bit overwhelmed by a task? Make sure others know about it by clicking on Iocaine when editing a task. It's possible to become immune to this (fictional) deadly poison by consuming small amounts over time just as it's possible to get better at what you do by occasionally taking on extra challenges!"
|
||||||
},
|
},
|
||||||
"NOTIFICATION": {
|
"NOTIFICATION": {
|
||||||
"OK": "Everything is ok",
|
"OK": "Everything is ok",
|
||||||
|
|
|
@ -654,7 +654,9 @@
|
||||||
"MILESTONE": "Sprint",
|
"MILESTONE": "Sprint",
|
||||||
"USER_STORY": "Historia de usuario",
|
"USER_STORY": "Historia de usuario",
|
||||||
"IS_IOCAINE": "Tiene iocaína"
|
"IS_IOCAINE": "Tiene iocaína"
|
||||||
}
|
},
|
||||||
|
"ACTION_IOCAINE": "Iocaína",
|
||||||
|
"TITLE_ACTION_IOCAINE": "¿Te sientes fuera de tu zona de confort en una tarea? Asegúrate de que los demás están al tanto de ello, marca el check de la Iocaína al editar una tarea. Igual eu era posible llegar a ser inmune a este veneno mortal a base de consumir pequeñas dosis a lo largo del tiempo, es posible conseguir mejor en lo que estás haciendo si afrontas de vez en cuando esta clase de retos!"
|
||||||
},
|
},
|
||||||
"NOTIFICATION": {
|
"NOTIFICATION": {
|
||||||
"OK": "Todo está bien",
|
"OK": "Todo está bien",
|
||||||
|
@ -741,33 +743,44 @@
|
||||||
"TITLE_NEXT_ISSUE": "petición siguiente",
|
"TITLE_NEXT_ISSUE": "petición siguiente",
|
||||||
"ACTION_DELETE": "Borrar petición",
|
"ACTION_DELETE": "Borrar petición",
|
||||||
"LIGHTBOX_TITLE_BLOKING_ISSUE": "Petición bloqueada",
|
"LIGHTBOX_TITLE_BLOKING_ISSUE": "Petición bloqueada",
|
||||||
"FIELDS": {
|
|
||||||
"PRIORITY": "prioridad",
|
|
||||||
"SEVERITY": "gravedad",
|
|
||||||
"TYPE": "tipo"
|
|
||||||
},
|
|
||||||
"CONFIRM_PROMOTE": {
|
"CONFIRM_PROMOTE": {
|
||||||
"TITLE": "Promover esta petición a una nueva historia de usuario",
|
"TITLE": "Promover esta petición a una nueva historia de usuario",
|
||||||
"MESSAGE": "¿Está seguro de que desea crear una nueva Historia de Usuario a partir de esta Petición?"
|
"MESSAGE": "¿Está seguro de que desea crear una nueva Historia de Usuario a partir de esta Petición?"
|
||||||
},
|
},
|
||||||
"FILTERS": {
|
"FILTERS": {
|
||||||
|
"TITLE": "Filtros",
|
||||||
|
"INPUT_SEARCH_PLACEHOLDER": "Asunto o referencia",
|
||||||
|
"TITLE_ACTION_SEARCH": "Buscar",
|
||||||
"ACTION_SAVE_CUSTOM_FILTER": "guardar como atributo personalizado",
|
"ACTION_SAVE_CUSTOM_FILTER": "guardar como atributo personalizado",
|
||||||
|
"BREADCRUMB": "Filtros",
|
||||||
|
"TITLE_BREADCRUMB": "Filtros",
|
||||||
|
"CATEGORIES": {
|
||||||
|
"TYPE": "Tipo",
|
||||||
|
"STATUS": "Estado",
|
||||||
|
"SEVERITY": "Gravedad",
|
||||||
|
"PRIORITIES": "Prioridad",
|
||||||
|
"TAGS": "Etiquetas",
|
||||||
|
"ASSIGNED_TO": "Asignado a",
|
||||||
|
"CREATED_BY": "Creada por",
|
||||||
|
"CUSTOM_FILTERS": "Filtros personalizados"
|
||||||
|
},
|
||||||
"CONFIRM_DELETE": {
|
"CONFIRM_DELETE": {
|
||||||
"TITLE": "Eliminar filtros personalizados",
|
"TITLE": "Eliminar filtros personalizados",
|
||||||
"MESSAGE": "el atributo personalizado '{{customFilterName}}'"
|
"MESSAGE": "el atributo personalizado '{{customFilterName}}'"
|
||||||
},
|
}
|
||||||
"FILTER_CATEGORY_TYPE": "Tipo",
|
|
||||||
"FILTER_CATEGORY_STATUS": "Estado",
|
|
||||||
"FILTER_CATEGORY_SEVERITY": "Gravedad",
|
|
||||||
"FILTER_CATEGORY_PRIORITIES": "Prioridades",
|
|
||||||
"FILTER_CATEGORY_TAGS": "Etiquetas",
|
|
||||||
"FILTER_CATEGORY_ASSIGNED_TO": "Asignado a",
|
|
||||||
"FILTER_CATEGORY_CREATED_BY": "Creado por",
|
|
||||||
"CUSTOM_FILTERS": "Filtros personalizados"
|
|
||||||
},
|
},
|
||||||
"TABLE": {
|
"TABLE": {
|
||||||
"COLUMN_CREATED": "Creado",
|
"COLUMNS": {
|
||||||
|
"TYPE": "Tipo",
|
||||||
|
"SEVERITY": "Gravedad",
|
||||||
|
"PRIORITY": "Prioridad",
|
||||||
|
"SUBJECT": "Asunto",
|
||||||
|
"STATUS": "Estado",
|
||||||
|
"CREATED": "Creado",
|
||||||
|
"ASSIGNED_TO": "Asignado a"
|
||||||
|
},
|
||||||
"TITLE_ACTION_CHANGE_STATUS": "Cambio de estado",
|
"TITLE_ACTION_CHANGE_STATUS": "Cambio de estado",
|
||||||
|
"TITLE_ACTION_ASSIGNED_TO": "Asignado a",
|
||||||
"EMPTY": {
|
"EMPTY": {
|
||||||
"TITLE": "No hay peticiones a reportar :-)",
|
"TITLE": "No hay peticiones a reportar :-)",
|
||||||
"SUBTITLE": "¿Ha encontrado una petición?",
|
"SUBTITLE": "¿Ha encontrado una petición?",
|
||||||
|
|
Loading…
Reference in New Issue