[i18n] Fix some errors in Report Section

stable
David Barragán Merino 2015-04-22 12:04:29 +02:00
parent 877d067ed9
commit 804d0be308
3 changed files with 13 additions and 27 deletions

View File

@ -377,9 +377,9 @@ module.controller("CsvExporterIssuesController", CsvExporterIssuesController)
## CSV Directive ## CSV Directive
############################################################################# #############################################################################
CsvUsDirective = () -> CsvUsDirective = ($translate) ->
link = ($scope) -> link = ($scope) ->
$scope.csvType = "US" $scope.csvType = $translate.instant("ADMIN.REPORTS.CSV_TYPE_USS")
return { return {
controller: "CsvExporterUserstoriesController", controller: "CsvExporterUserstoriesController",
@ -388,11 +388,11 @@ CsvUsDirective = () ->
scope: true scope: true
} }
module.directive("tgCsvUs", [CsvUsDirective]) module.directive("tgCsvUs", ["$translate", CsvUsDirective])
CsvTaskDirective = () -> CsvTaskDirective = ($translate) ->
link = ($scope) -> link = ($scope) ->
$scope.csvType = "Task" $scope.csvType = $translate.instant("ADMIN.REPORTS.CSV_TYPE_TASKS")
return { return {
controller: "CsvExporterTasksController", controller: "CsvExporterTasksController",
@ -401,11 +401,11 @@ CsvTaskDirective = () ->
scope: true scope: true
} }
module.directive("tgCsvTask", [CsvTaskDirective]) module.directive("tgCsvTask", ["$translate", CsvTaskDirective])
CsvIssueDirective = () -> CsvIssueDirective = ($translate) ->
link = ($scope) -> link = ($scope) ->
$scope.csvType = "Issues" $scope.csvType = $translate.instant("ADMIN.REPORTS.CSV_TYPE_ISSUES")
return { return {
controller: "CsvExporterIssuesController", controller: "CsvExporterIssuesController",
@ -414,4 +414,4 @@ CsvIssueDirective = () ->
scope: true scope: true
} }
module.directive("tgCsvIssue", [CsvIssueDirective]) module.directive("tgCsvIssue", ["$translate", CsvIssueDirective])

View File

@ -185,7 +185,10 @@
"DESCRIPTION": "Download a CSV file or copy the generated URL and open it in your favourite text editor or spreadsheet to make your own project data reports. You will be able to visualize and analize all your data easily.", "DESCRIPTION": "Download a CSV file or copy the generated URL and open it in your favourite text editor or spreadsheet to make your own project data reports. You will be able to visualize and analize all your data easily.",
"HELP": "How to use this on my own spreadsheet?", "HELP": "How to use this on my own spreadsheet?",
"REGENERATE_TITLE": "Change URL", "REGENERATE_TITLE": "Change URL",
"REGENERATE_SUBTITLE": "You going to change the CSV data access url. The previous url will be disabled. Are you sure?" "REGENERATE_SUBTITLE": "You going to change the CSV data access url. The previous url will be disabled. Are you sure?",
"CSV_TYPE_US": "user stories",
"CSV_TYPE_TASK": "tasks",
"CSV_TYPE_ISSUE": "issues"
}, },
"CUSTOM_FIELDS": { "CUSTOM_FIELDS": {
"TITLE": "Custom Fields", "TITLE": "Custom Fields",

View File

@ -1,17 +0,0 @@
section.project-csv(tg-select-input-text)
div.project-values-title
h2 {{csvType}} sdfdsf
h2(translate="ADMIN.CSV.TITLE")
a.button.button-gray(title="{{'ADMIN.CSV.DOWNLOAD' | translate}}", ng-href="{{csvUrl}}", ng-show="csvUrl", target="_blank")
span(translate="ADMIN.CSV.DOWNLOAD")
div.csv-regenerate-field
.field-with-options
input(type="text", placeholder="{{'ADMIN.CSV.URL_FIELD_PLACEHOLDER' | translate}}", readonly, ng-model="csvUrl")
.option-wrapper.select-input-content
.icon.icon-copy
a(href="", title="{{'ADMIN.CSV.TITLE_REGENERATE_URL' | translate}}", ng-click="ctrl.regenerateUuid()")
span.icon.icon-plus(ng-hide="csvUrl")
span(ng-hide="csvUrl", translate="ADMIN.CSV.ACTION_GENERATE_URL")
span.icon.icon-reload(ng-Show="csvUrl")
span(ng-Show="csvUrl", translate="ADMIN.CSV.ACTION_REGENERATE")