(final String text)
| 1612 | } |
| 1613 | |
| 1614 | private static void showMatureDialog(final String text) |
| 1615 | { |
| 1616 | Logging.log(Logging.WARNING, "The following datasets contains mature themes. User discretion is advised."); |
| 1617 | Logging.log(Logging.WARNING, text); |
| 1618 | // todo: combine into a single l18n string |
| 1619 | String matureWarning = LanguageBundle.getString("in_matureWarningLine1") |
| 1620 | + '\n' |
| 1621 | + LanguageBundle.getString("in_matureWarningLine2"); |
| 1622 | Alert alert = RememberingChoiceDialog.create( |
| 1623 | LanguageBundle.getString("in_matureTitle"), |
| 1624 | matureWarning, |
| 1625 | text, |
| 1626 | "in_Prefs_displayMature", |
| 1627 | PCGenSettings.OPTIONS_CONTEXT, |
| 1628 | PCGenSettings.OPTION_SHOW_MATURE_ON_LOAD |
| 1629 | ); |
| 1630 | GuiUtility.runOnJavaFXThreadNow(alert::showAndWait); |
| 1631 | } |
| 1632 | |
| 1633 | void showAboutDialog() |
| 1634 | { |
no test coverage detected