fix sections translations

stable
Juanfran 2015-05-25 12:41:06 +02:00
parent 3d76d225c7
commit f2d17aaacc
3 changed files with 9 additions and 6 deletions

View File

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

View File

@ -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()

View File

@ -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()