Fixing translation for user stories and task sections

stable
Alejandro Alonso 2015-05-18 12:19:21 +02:00
parent 8f59e2516c
commit 2170ea9e3a
3 changed files with 12 additions and 6 deletions

View File

@ -45,13 +45,14 @@ class TaskDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
"$appTitle", "$appTitle",
"$tgNavUrls", "$tgNavUrls",
"$tgAnalytics", "$tgAnalytics",
"$translate",
"tgLoader" "tgLoader"
] ]
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, 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.taskRef = @params.taskref
@scope.sectionName = "Task Details" @scope.sectionName = @translate.instant("TASK.SECTION_NAME")
@.initializeEventHandlers() @.initializeEventHandlers()
promise = @.loadInitialData() promise = @.loadInitialData()

View File

@ -45,13 +45,14 @@ class UserStoryDetailController extends mixOf(taiga.Controller, taiga.PageMixin)
"$appTitle", "$appTitle",
"$tgNavUrls", "$tgNavUrls",
"$tgAnalytics", "$tgAnalytics",
"$translate",
"tgLoader" "tgLoader"
] ]
constructor: (@scope, @rootscope, @repo, @confirm, @rs, @params, @q, @location, 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.usRef = @params.usref
@scope.sectionName = "User Story Details" @scope.sectionName = @translate.instant("US.SECTION_NAME")
@.initializeEventHandlers() @.initializeEventHandlers()
promise = @.loadInitialData() promise = @.loadInitialData()

View File

@ -514,7 +514,9 @@
"DELETE_ACCOUNT": { "DELETE_ACCOUNT": {
"SECTION_NAME": "Delete Taiga Account", "SECTION_NAME": "Delete Taiga Account",
"CONFIRM": "Are you sure you want to delete your 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": { "DELETE_PROJECT": {
"TITLE": "Delete project", "TITLE": "Delete project",
@ -574,6 +576,7 @@
} }
}, },
"US": { "US": {
"SECTION_NAME": "User story details",
"LINK_TASKBOARD": "Taskboard", "LINK_TASKBOARD": "Taskboard",
"TITLE_LINK_TASKBOARD": "Go to the taskboard", "TITLE_LINK_TASKBOARD": "Go to the taskboard",
"TOTAL_POINTS": "total", "TOTAL_POINTS": "total",
@ -760,6 +763,7 @@
} }
}, },
"TASK": { "TASK": {
"SECTION_NAME": "Task details",
"LINK_TASKBOARD": "Taskboard", "LINK_TASKBOARD": "Taskboard",
"TITLE_LINK_TASKBOARD": "Go to the taskboard", "TITLE_LINK_TASKBOARD": "Go to the taskboard",
"PLACEHOLDER_SUBJECT": "Type the new task subject", "PLACEHOLDER_SUBJECT": "Type the new task subject",
@ -855,7 +859,7 @@
}, },
"ISSUES": { "ISSUES": {
"LIST_SECTION_NAME": "Issues", "LIST_SECTION_NAME": "Issues",
"SECTION_NAME": "Issue Details", "SECTION_NAME": "Issue details",
"ACTION_NEW_ISSUE": "+ NEW ISSUE", "ACTION_NEW_ISSUE": "+ NEW ISSUE",
"ACTION_PROMOTE_TO_US": "Promote to User Story", "ACTION_PROMOTE_TO_US": "Promote to User Story",
"PLACEHOLDER_FILTER_NAME": "Write the filter name and press enter", "PLACEHOLDER_FILTER_NAME": "Write the filter name and press enter",