diff --git a/src/de/deadlocker8/budgetmaster/logic/report/ReportGenerator.java b/src/de/deadlocker8/budgetmaster/logic/report/ReportGenerator.java index 87cf2a616c0bece2b71068166d1b8dece2744be3..38f7d53bd7e60d29ec468b769f46e3d5e5e685ad 100644 --- a/src/de/deadlocker8/budgetmaster/logic/report/ReportGenerator.java +++ b/src/de/deadlocker8/budgetmaster/logic/report/ReportGenerator.java @@ -211,7 +211,7 @@ public class ReportGenerator if(reportPreferences.isIncludeCategoryBudgets()) { document.add(Chunk.NEWLINE); - document.add(new Paragraph(Localization.getString(Strings.TITLE_CATEGORY_BUDGETS), headerFont)); + document.add(new Paragraph(Localization.getString(Strings.TITLE_CATEGORY_BUDGETS), smallHeaderFont)); document.add(Chunk.NEWLINE); PdfPTable table = generateCategoryBudgets(); diff --git a/src/de/deadlocker8/budgetmaster/ui/controller/ChartController.java b/src/de/deadlocker8/budgetmaster/ui/controller/ChartController.java index bb5b3405968c71a8a2efa47c7ccc0bcabdde502c..3ac705844dbdf86d3811dc2352701df700aaff65 100644 --- a/src/de/deadlocker8/budgetmaster/ui/controller/ChartController.java +++ b/src/de/deadlocker8/budgetmaster/ui/controller/ChartController.java @@ -185,10 +185,10 @@ public class ChartController implements Refreshable, Styleable String endYear = comboBoxEndYear.getValue(); String startDateString = "01-" + startMonth + "-" + startYear; - DateTime startDate = DateTime.parse(startDateString, DateTimeFormat.forPattern("dd-MMMM-YYYY")); + DateTime startDate = DateTime.parse(startDateString, DateTimeFormat.forPattern("dd-MMMM-YYYY").withLocale(controller.getSettings().getLanguage().getLocale())); String endDateString = "01-" + endMonth + "-" + endYear; - DateTime endDate = DateTime.parse(endDateString, DateTimeFormat.forPattern("dd-MMMM-YYYY")); + DateTime endDate = DateTime.parse(endDateString, DateTimeFormat.forPattern("dd-MMMM-YYYY").withLocale(controller.getSettings().getLanguage().getLocale())); if(endDate.isBefore(startDate)) { @@ -257,10 +257,11 @@ public class ChartController implements Refreshable, Styleable datePickerEnd.setValue(endDate); // chart month - comboBoxStartMonth.setValue(controller.getCurrentDate().minusMonths(5).toString("MMMM")); + System.out.println(controller.getCurrentDate().minusMonths(5).monthOfYear().getAsText(controller.getSettings().getLanguage().getLocale())); + comboBoxStartMonth.setValue(controller.getCurrentDate().minusMonths(5).monthOfYear().getAsText(controller.getSettings().getLanguage().getLocale())); comboBoxStartYear.setValue(String.valueOf(controller.getCurrentDate().minusMonths(5).getYear())); - comboBoxEndMonth.setValue(controller.getCurrentDate().plusMonths(6).toString("MMMM")); + comboBoxEndMonth.setValue(controller.getCurrentDate().plusMonths(6).monthOfYear().getAsText(controller.getSettings().getLanguage().getLocale())); comboBoxEndYear.setValue(String.valueOf(controller.getCurrentDate().plusMonths(6).getYear())); Worker.runLater(() -> {