fix sections translations
parent
3d76d225c7
commit
f2d17aaacc
|
@ -48,11 +48,12 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
"$tgLocation",
|
"$tgLocation",
|
||||||
"$tgNavUrls"
|
"$tgNavUrls"
|
||||||
"$tgEvents"
|
"$tgEvents"
|
||||||
"$tgAnalytics"
|
"$tgAnalytics",
|
||||||
|
"$translate"
|
||||||
]
|
]
|
||||||
|
|
||||||
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @appTitle, @location, @navUrls,
|
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @appTitle, @location, @navUrls,
|
||||||
@events, @analytics) ->
|
@events, @analytics, @translate) ->
|
||||||
bindMethods(@)
|
bindMethods(@)
|
||||||
|
|
||||||
@scope.sectionName = @translate.instant("TASKBOARD.SECTION_NAME")
|
@scope.sectionName = @translate.instant("TASKBOARD.SECTION_NAME")
|
||||||
|
|
|
@ -44,11 +44,12 @@ class TaskDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
"$log",
|
"$log",
|
||||||
"$appTitle",
|
"$appTitle",
|
||||||
"$tgNavUrls",
|
"$tgNavUrls",
|
||||||
"$tgAnalytics"
|
"$tgAnalytics",
|
||||||
|
"$translate"
|
||||||
]
|
]
|
||||||
|
|
||||||
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location,
|
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location,
|
||||||
@log, @appTitle, @navUrls, @analytics) ->
|
@log, @appTitle, @navUrls, @analytics, @translate) ->
|
||||||
@scope.taskRef = @params.taskref
|
@scope.taskRef = @params.taskref
|
||||||
@scope.sectionName = @translate.instant("TASK.SECTION_NAME")
|
@scope.sectionName = @translate.instant("TASK.SECTION_NAME")
|
||||||
@.initializeEventHandlers()
|
@.initializeEventHandlers()
|
||||||
|
|
|
@ -44,11 +44,12 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
|
||||||
"$log",
|
"$log",
|
||||||
"$appTitle",
|
"$appTitle",
|
||||||
"$tgNavUrls",
|
"$tgNavUrls",
|
||||||
"$tgAnalytics"
|
"$tgAnalytics",
|
||||||
|
"$translate"
|
||||||
]
|
]
|
||||||
|
|
||||||
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location,
|
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location,
|
||||||
@log, @appTitle, @navUrls, @analytics) ->
|
@log, @appTitle, @navUrls, @analytics, @translate) ->
|
||||||
@scope.usRef = @params.usref
|
@scope.usRef = @params.usref
|
||||||
@scope.sectionName = @translate.instant("US.SECTION_NAME")
|
@scope.sectionName = @translate.instant("US.SECTION_NAME")
|
||||||
@.initializeEventHandlers()
|
@.initializeEventHandlers()
|
||||||
|
|
Loading…
Reference in New Issue