diff --git a/app/coffee/modules/tasks/detail.coffee b/app/coffee/modules/tasks/detail.coffee index 7a567e3e..bd25d2f2 100644 --- a/app/coffee/modules/tasks/detail.coffee +++ b/app/coffee/modules/tasks/detail.coffee @@ -45,13 +45,14 @@ class TaskDetailController extends mixOf(taiga.Controller, taiga.PageMixin) "$appTitle", "$tgNavUrls", "$tgAnalytics", + "$translate", "tgLoader" ] constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, - @log, @appTitle, @navUrls, @analytics, tgLoader) -> + @log, @appTitle, @navUrls, @analytics, @translate, tgLoader) -> @scope.taskRef = @params.taskref - @scope.sectionName = "Task Details" + @scope.sectionName = @translate.instant("TASK.SECTION_NAME") @.initializeEventHandlers() promise = @.loadInitialData() diff --git a/app/coffee/modules/userstories/detail.coffee b/app/coffee/modules/userstories/detail.coffee index 9c3ef7f5..79525316 100644 --- a/app/coffee/modules/userstories/detail.coffee +++ b/app/coffee/modules/userstories/detail.coffee @@ -45,13 +45,14 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin) "$appTitle", "$tgNavUrls", "$tgAnalytics", + "$translate", "tgLoader" ] constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, - @log, @appTitle, @navUrls, @analytics, tgLoader) -> + @log, @appTitle, @navUrls, @analytics, @translate, tgLoader) -> @scope.usRef = @params.usref - @scope.sectionName = "User Story Details" + @scope.sectionName = @translate.instant("US.SECTION_NAME") @.initializeEventHandlers() promise = @.loadInitialData() diff --git a/app/locales/locale-en.json b/app/locales/locale-en.json index d9caabee..03522485 100644 --- a/app/locales/locale-en.json +++ b/app/locales/locale-en.json @@ -514,7 +514,9 @@ "DELETE_ACCOUNT": { "SECTION_NAME": "Delete Taiga Account", "CONFIRM": "Are you sure you want to delete your Taiga account?", - "SUBTITLE": "We're going to miss you! :-(" + "SUBTITLE": "We're going to miss you! :-(", + "NEWSLETTER_LABEL_TEXT": "I don't wanna receive your newsletter anymore" + }, "DELETE_PROJECT": { "TITLE": "Delete project", @@ -574,6 +576,7 @@ } }, "US": { + "SECTION_NAME": "User story details", "LINK_TASKBOARD": "Taskboard", "TITLE_LINK_TASKBOARD": "Go to the taskboard", "TOTAL_POINTS": "total", @@ -760,6 +763,7 @@ } }, "TASK": { + "SECTION_NAME": "Task details", "LINK_TASKBOARD": "Taskboard", "TITLE_LINK_TASKBOARD": "Go to the taskboard", "PLACEHOLDER_SUBJECT": "Type the new task subject", @@ -855,7 +859,7 @@ }, "ISSUES": { "LIST_SECTION_NAME": "Issues", - "SECTION_NAME": "Issue Details", + "SECTION_NAME": "Issue details", "ACTION_NEW_ISSUE": "+ NEW ISSUE", "ACTION_PROMOTE_TO_US": "Promote to User Story", "PLACEHOLDER_FILTER_NAME": "Write the filter name and press enter",