diff --git a/app/coffee/modules/taskboard/main.coffee b/app/coffee/modules/taskboard/main.coffee index 38045266..c9aae4af 100644 --- a/app/coffee/modules/taskboard/main.coffee +++ b/app/coffee/modules/taskboard/main.coffee @@ -48,11 +48,12 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin) "$tgLocation", "$tgNavUrls" "$tgEvents" - "$tgAnalytics" + "$tgAnalytics", + "$translate" ] constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @appTitle, @location, @navUrls, - @events, @analytics) -> + @events, @analytics, @translate) -> bindMethods(@) @scope.sectionName = @translate.instant("TASKBOARD.SECTION_NAME") diff --git a/app/coffee/modules/tasks/detail.coffee b/app/coffee/modules/tasks/detail.coffee index 351810d9..9b13c382 100644 --- a/app/coffee/modules/tasks/detail.coffee +++ b/app/coffee/modules/tasks/detail.coffee @@ -44,11 +44,12 @@ class TaskDetailController extends mixOf(taiga.Controller, taiga.PageMixin) "$log", "$appTitle", "$tgNavUrls", - "$tgAnalytics" + "$tgAnalytics", + "$translate" ] constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, - @log, @appTitle, @navUrls, @analytics) -> + @log, @appTitle, @navUrls, @analytics, @translate) -> @scope.taskRef = @params.taskref @scope.sectionName = @translate.instant("TASK.SECTION_NAME") @.initializeEventHandlers() diff --git a/app/coffee/modules/userstories/detail.coffee b/app/coffee/modules/userstories/detail.coffee index f47af4b8..35777d94 100644 --- a/app/coffee/modules/userstories/detail.coffee +++ b/app/coffee/modules/userstories/detail.coffee @@ -44,11 +44,12 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin) "$log", "$appTitle", "$tgNavUrls", - "$tgAnalytics" + "$tgAnalytics", + "$translate" ] constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, - @log, @appTitle, @navUrls, @analytics) -> + @log, @appTitle, @navUrls, @analytics, @translate) -> @scope.usRef = @params.usref @scope.sectionName = @translate.instant("US.SECTION_NAME") @.initializeEventHandlers()