Give the summary bar sections string names (some already translated)

This commit is contained in:
str4d
2012-07-17 20:36:57 +00:00
parent 4cea0b6099
commit 5766b36b33
2 changed files with 25 additions and 3 deletions

View File

@ -790,6 +790,7 @@ public class SummaryHelper extends HelperBase {
public String getConfigTable() {
String[] allSections = SummaryBarRenderer.ALL_SECTIONS;
Map<String, String> sectionNames = SummaryBarRenderer.SECTION_NAMES;
List<String> sections = getSummaryBarSections("default");
TreeSet<String> sortedSections = new TreeSet();
@ -815,7 +816,7 @@ public class SummaryHelper extends HelperBase {
buf.append("<tr><td align=\"center\"><input type=\"checkbox\" class=\"optbox\" name=\"delete_")
.append(i)
.append("\"></td><td align=\"left\">")
.append(section)
.append(_(sectionNames.get(section)))
.append("</td><td align=\"right\"><input type=\"hidden\" name=\"order_")
.append(i + "_" + section)
.append("\" value=\"")
@ -860,7 +861,7 @@ public class SummaryHelper extends HelperBase {
for (String s : sortedSections) {
buf.append("<option value=\"").append(s).append("\">")
.append(s).append("</option>\n");
.append(sectionNames.get(s)).append("</option>\n");
}
buf.append("</select>\n" +