i18n preferences dialog

This commit is contained in:
Andreas Billmann
2016-01-12 22:03:20 +01:00
parent 134d7fedc8
commit 7bb2d78c4b
3 changed files with 15 additions and 2 deletions

View File

@@ -245,8 +245,9 @@ public class SmartCSVController extends FXMLController {
@FXML
public void preferences(ActionEvent actionEvent) {
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
alert.setTitle("Preferences");
alert.setHeaderText("Preferences");
alert.setGraphic(null);
alert.setTitle(resourceBundle.getString("dialog.preferences.title"));
alert.setHeaderText(resourceBundle.getString("dialog.preferences.header.text"));
alert.getDialogPane().setContent(preferencesController.getView());
Optional<ButtonType> result = alert.showAndWait();