From 42d59a532fa477ce69b08095d254f03a9d1ca59f Mon Sep 17 00:00:00 2001 From: carlg0ransson Date: Sun, 10 Nov 2019 11:13:11 +0100 Subject: [PATCH] =?UTF-8?q?added=20description=20string=20to=20the=20theme?= =?UTF-8?q?loader,=20this=20is=20then=20used=20to=20dis=E2=80=A6=20(#5584)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * added description string to the themeloader, this is then used to display the description of the theme after applying a new theme in the preferences. * removed description string from themeloader, instead put the theme description inside the localization string * added a dot to the restart message string. * added locale strings to the english language file --- .../org/jabref/gui/preferences/AppearanceTabViewModel.java | 4 ++-- src/main/resources/l10n/JabRef_en.properties | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jabref/gui/preferences/AppearanceTabViewModel.java b/src/main/java/org/jabref/gui/preferences/AppearanceTabViewModel.java index 63a4abfe78a..b841c1956c2 100644 --- a/src/main/java/org/jabref/gui/preferences/AppearanceTabViewModel.java +++ b/src/main/java/org/jabref/gui/preferences/AppearanceTabViewModel.java @@ -81,10 +81,10 @@ public void storeSettings() { } if (themeLightProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.MAIN_CSS)) { - restartWarnings.add(Localization.lang("Theme changed:") + " " + ThemeLoader.MAIN_CSS); + restartWarnings.add(Localization.lang("Theme changed to light theme.")); preferences.put(JabRefPreferences.FX_THEME, ThemeLoader.MAIN_CSS); } else if (themeDarkProperty.getValue() && !preferences.get(JabRefPreferences.FX_THEME).equals(ThemeLoader.DARK_CSS)) { - restartWarnings.add(Localization.lang("Theme changed:") + " " + ThemeLoader.DARK_CSS); + restartWarnings.add(Localization.lang("Theme changed to dark theme.")); preferences.put(JabRefPreferences.FX_THEME, ThemeLoader.DARK_CSS); } } diff --git a/src/main/resources/l10n/JabRef_en.properties b/src/main/resources/l10n/JabRef_en.properties index f536e481920..5b3dbc721ff 100644 --- a/src/main/resources/l10n/JabRef_en.properties +++ b/src/main/resources/l10n/JabRef_en.properties @@ -2100,7 +2100,8 @@ Size\:=Size: Font\ settings=Font settings Override\ font\ settings=Override font settings Override\ font\ size=Override font size -Theme\ changed\:=Theme changed\: +Theme\ changed\ to\ dark\ theme.=Theme changed to dark theme. +Theme\ changed\ to\ light\ theme.=Theme changed to light theme. You\ must\ enter\ an\ integer\ value\ higher\ than\ 8.=You must enter an integer value higher than 8. Letters\ after\ duplicate\ generated\ keys=Letters after duplicate generated keys Start\ on\ second\ duplicate\ key\ with\ letter\ A\ (a,\ b,\ ...)=Start on second duplicate key with letter A (a, b, ...)