Skip to content
Snippets Groups Projects
Commit b2d6877f authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#632 - updated what's new dialog

parent 66a50136
No related branches found
No related tags found
No related merge requests found
......@@ -36,15 +36,12 @@ public class AboutController extends BaseController
public String whatsNewModal(Model model)
{
final List<NewsEntry> newsEntries = new ArrayList<>();
newsEntries.add(NewsEntry.createWithLocalizationKeys("news.chartChooser.headline", "news.chartChooser.description"));
newsEntries.add(NewsEntry.createWithLocalizationKeys("news.jumpToSearch.headline", "news.jumpToSearch.description"));
newsEntries.add(NewsEntry.createWithLocalizationKeys("news.fontAwesomeIcons.headline", "news.fontAwesomeIcons.description"));
newsEntries.add(NewsEntry.createWithLocalizationKeys("news.nonSquareImages.headline", "news.nonSquareImages.description"));
newsEntries.add(NewsEntry.createWithLocalizationKeys("news.hints.headline", "news.hints.description"));
newsEntries.add(NewsEntry.createWithLocalizationKeys("news.tagOverview.headline", "news.tagOverview.description"));
newsEntries.add(NewsEntry.createWithLocalizationKeys("news.accountImport.headline", "news.accountImport.description"));
newsEntries.add(NewsEntry.createWithLocalizationKeys("news.performance.headline", "news.performance.description"));
newsEntries.add(NewsEntry.createWithLocalizationKeys("news.fix.transfersFromHiddenAccounts.headline", "news.fix.transfersFromHiddenAccounts.description"));
newsEntries.add(NewsEntry.createWithLocalizationKey("recurringTransfers"));
newsEntries.add(NewsEntry.createWithLocalizationKey("newFromExisting"));
newsEntries.add(NewsEntry.createWithLocalizationKey("imagePerformance"));
newsEntries.add(NewsEntry.createWithLocalizationKey("searchOption"));
newsEntries.add(NewsEntry.createWithLocalizationKey("trimInputs"));
newsEntries.add(NewsEntry.createWithLocalizationKey("fix.sortTemplates"));
model.addAttribute("newsEntries", newsEntries);
return "whatsNewModal";
......
......@@ -2,6 +2,8 @@ package de.deadlocker8.budgetmaster.controller;
import de.thecodelabs.utils.util.Localization;
import java.text.MessageFormat;
public class NewsEntry
{
private final String headline;
......@@ -18,6 +20,12 @@ public class NewsEntry
return new NewsEntry(Localization.getString(headlineKey), Localization.getString(descriptionKey));
}
public static NewsEntry createWithLocalizationKey(String shortKey)
{
return new NewsEntry(Localization.getString(MessageFormat.format("news.{0}.headline", shortKey)),
Localization.getString(MessageFormat.format("news.{0}.description", shortKey)));
}
public String getHeadline()
{
return headline;
......
......@@ -2,29 +2,20 @@ news.further.information=Weitere Informationen
news.all.releases=Alle veröffentlichten und geplanten Versionen:
news.detailed=Ausführliches Changelog (nur auf Englisch):
news.chartChooser.headline=Neue Diagrammauswahl
news.chartChooser.description=Vollständige Neugestaltung der Diagrammauswahlseite für bessere Benutzbarkeit.
news.recurringTransfers.headline=Wiederholende Umbuchungen
news.recurringTransfers.description=Umbuchungen können jetzt auch automatisch wiederholt werden.
news.jumpToSearch.headline=Zur Suche springen
news.jumpToSearch.description=Direkt aus der Übersicht der Konten, Kategorien und Tags kann nun zur Suche gesprungen werden.
news.newFromExisting.headline=Neue Transaktion aus bestehender
news.newFromExisting.description=Ermöglicht die Erstellung einer Transaktion auf der Grundlage einer bestehenden Transaktion (die Formularfelder werden automatisch vorausgefüllt).
news.fontAwesomeIcons.headline=Fontawesome Icons
news.fontAwesomeIcons.description=Neben Kategorien können nun auch für Konten und Vorlagen Fontawesome Icons gewählt werden, anstatt nur eigene Bilder.
news.imagePerformance.headline=Verbesserung der Performance
news.imagePerformance.description=Verbesserung der Performance beim Laden von Bildern für Konten und Kategorien.
news.nonSquareImages.headline=Nicht quadratische Bilder
news.nonSquareImages.description=Unterstützung für nicht quadratische Konto-, Kategorie- und Vorlagenicons hinzugefügt.
news.searchOption.headline=Option zur Suche in versteckten Konten
news.searchOption.description=Neue Checkbox um beim Suchen auch Transaktionen aus versteckten Konten einzubeziehen.
news.hints.headline=Tipps zur Benutzung
news.hints.description=Diverse nützliche Tipps hinzugefügt, die als Informationsboxen angezeigt werden. Die Tipps lassen sich ausblenden.
news.trimInputs.headline=Texteingaben abschneiden
news.trimInputs.description=Leerzeichen am Anfang und Ende von Texteingaben werden automatisch entfernt (Hinweis: Das betrifft auch Passwortfelder!).
news.tagOverview.headline=Tagübersicht
news.tagOverview.description=Neue Seite hinzugefügt, die die verwendeten Tag-Namen und ihre Verwendungsanzahl zeigt.
news.accountImport.headline=Verbesserter Import von Konten
news.accountImport.description=Die Kontozuweisung im Importvorgang wird gespeichert und es wird nur noch ein Button zum Anlegen eines neuen Kontos angezeigt.
news.performance.headline=Verbesserung der Performance
news.performance.description=Bilder werden nur noch aus der Datenbank geladen, wenn diese auch benötigt werden. Insbesondere bei der Anzeige von Diagrammen sorgt das für verbesserte Performance.
news.fix.transfersFromHiddenAccounts.headline=Bugfix für versteckte Konten
news.fix.transfersFromHiddenAccounts.description=Behebt das Problem, dass Umbuchungen aus versteckten Konten ebenfalls versteckt wurden.
news.fix.sortTemplates.headline=Bugfix: Vorlagen nach Name sortieren
news.fix.sortTemplates.description=Vorlagen in der Vorlagenübersicht werden nach Vorlagennamen statt nach Transaktionsnamen sortiert.
\ No newline at end of file
......@@ -2,29 +2,20 @@ news.further.information=Further information
news.all.releases=All published and planned releases:
news.detailed=More detailed changelog (english only):
news.chartChooser.headline=Improved chart chooser
news.chartChooser.description=Completely re-design the chart chooser page to increase usability.
news.recurringTransfers.headline=Recurring transfers
news.recurringTransfers.description=Transfer transactions can now also be scheduled for automatic repetition.
news.jumpToSearch.headline=Jump to search
news.jumpToSearch.description=Directly jump to search from accounts, categories and tags overview.
news.newFromExisting.headline=New transaction from existing one
news.newFromExisting.description=Allow the creation of a transaction based on an existing one (form inputs are pre-filled automatically).
news.fontAwesomeIcons.headline=Fontawesome Icons
news.fontAwesomeIcons.description=Fontawesome icons can now be used for accounts and templates too instead of only for categories.
news.imagePerformance.headline=Improve image loading
news.imagePerformance.description=Improved the loading performance for custom account and category images.
news.nonSquareImages.headline=Non square images
news.nonSquareImages.description=Added support for non square account, category and template icons.
news.searchOption.headline=Search: Option to include hidden accounts
news.searchOption.description=Added a new checkbox to include transactions from hidden accounts
news.hints.headline=Usability hints
news.hints.description=Added several dismissible information boxes showing useful hints.
news.trimInputs.headline=Trim text inputs
news.trimInputs.description=All whitespace in text inputs should be trimmed before saving (Note: This affects password inputs too!).
news.tagOverview.headline=Tag overview
news.tagOverview.description=New page for viewing tag names and how often they are used.
news.accountImport.headline=Improved account import
news.accountImport.description=Remember account matching during import and show only one button to create a new account.
news.performance.headline=Improve performance
news.performance.description=Images are only loaded from database when needed. This improves performance, especially when displaying charts.
news.fix.transfersFromHiddenAccounts.headline=Bugfix hidden accounts
news.fix.transfersFromHiddenAccounts.description=Fixes a bug that caused transfers from hidden accounts to be hidden as well.
news.fix.sortTemplates.headline=Bugfix: Sort templates by template name
news.fix.sortTemplates.description=Sort templates by template name instead of transaction name in template overview.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment