Report Manager - Excel export fix and added localization

This commit is contained in:
Tavares André 2015-04-21 20:21:45 +02:00
parent 1cd83cc395
commit adc52db15a
2 changed files with 8 additions and 3 deletions

View file

@ -175,7 +175,7 @@ namespace MediaBrowser.Api.Reports
if (reportResult.IsGrouped) if (reportResult.IsGrouped)
foreach (ReportGroup group in reportResult.Groups) foreach (ReportGroup group in reportResult.Groups)
{ {
returnValue.AppendLine("<tr style='background-color: rgb(51, 51, 51);'>"); returnValue.AppendLine("<tr>");
returnValue.AppendLine("<th scope='rowgroup' colspan='" + reportResult.Headers.Count + "'>" + (string.IsNullOrEmpty(group.Name) ? "&nbsp;" : group.Name) + "</th>"); returnValue.AppendLine("<th scope='rowgroup' colspan='" + reportResult.Headers.Count + "'>" + (string.IsNullOrEmpty(group.Name) ? "&nbsp;" : group.Name) + "</th>");
returnValue.AppendLine("</tr>"); returnValue.AppendLine("</tr>");
foreach (ReportRow row in group.Rows) foreach (ReportRow row in group.Rows)
@ -183,7 +183,7 @@ namespace MediaBrowser.Api.Reports
ExportToExcelRow(reportResult, returnValue, row); ExportToExcelRow(reportResult, returnValue, row);
} }
returnValue.AppendLine("<tr>"); returnValue.AppendLine("<tr>");
returnValue.AppendLine("<th scope='rowgroup' colspan='" + reportResult.Headers.Count + "'>" + "&nbsp;" + "</th>"); returnValue.AppendLine("<th style='background-color: #ffffff;' scope='rowgroup' colspan='" + reportResult.Headers.Count + "'>" + "&nbsp;" + "</th>");
returnValue.AppendLine("</tr>"); returnValue.AppendLine("</tr>");
} }

View file

@ -1435,5 +1435,10 @@
"LabelSelectViewStyles": "Enable rich presentations for:", "LabelSelectViewStyles": "Enable rich presentations for:",
"LabelSelectViewStylesHelp": "If enabled, views will be built with metadata to offer categories such as Suggestions, Latest, Genres, and more. If disabled, they'll be displayed with simple folders.", "LabelSelectViewStylesHelp": "If enabled, views will be built with metadata to offer categories such as Suggestions, Latest, Genres, and more. If disabled, they'll be displayed with simple folders.",
"TabPhotos": "Photos", "TabPhotos": "Photos",
"TabVideos": "Videos" "TabVideos": "Videos",
"OptionReportList": "List View",
"OptionReportStatistics": "Statistics",
"OptionReportGrouping": "Grouping",
"OptionReportExport": "Report Export",
"OptionReportColumns": "Report Columns"
} }