New Features #1

Open
marvinelsen wants to merge 76 commits from develop into main
Showing only changes of commit ac182c10c0 - Show all commits

View File

@ -29,6 +29,7 @@ class WillowApplication : Application() {
private const val FONT_SIZE = 12.0
private const val JDBC_CONNECTION_STRING = "jdbc:sqlite:dictionary.db"
val resourceBundle: ResourceBundle = ResourceBundle.getBundle("i18n/willow", Locale.US)
}
override fun init() {
@ -45,7 +46,7 @@ class WillowApplication : Application() {
val model = Model(searchService, findWordsService)
val fxmlLoader = FXMLLoader()
fxmlLoader.resources = ResourceBundle.getBundle("i18n/willow", Locale.US)
fxmlLoader.resources = resourceBundle
fxmlLoader.controllerFactory = Callback { type ->
when (type) {
MainController::class.java -> MainController(model)