Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would include the theme name directly in the localization: Localization.lang("Theme changed to light theme");. This way, the theme name is also translated. I would accept the two new localization strings.

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);
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2101,7 +2101,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, ...)
Expand Down