I have an application written on JavaFX (with using of FXML). I'm trying to internatiolize my app. I was trying to do it like it is described in this tutorial.
I have a property file with text like this: submit=Войти
I have a button, described in FXML:
<Button id="button1" fx:id="submit" layoutX="69.0" layoutY="200.0" onAction="#loginFired" prefHeight="45.0" prefWidth="97.0" text="\%submit" />
Property file and fxml file are in the same directory.
But my button do not have a text, i expect it to have, it is written "%submit" on it, but not "Войти". Then i've tried to do something like in this one tutorial In my intialize method i have suh code:
@Override
public void initialize(URL arg0, ResourceBundle resources) {
if(resources == null)
System.out.println("error");
}
and it gives me an "error" message to the log.
So, what am i doing wrong?