I know I can internationalize JavaFX application within fxml file by writing something like this
<Label id="versionLabel" text="%appVersion" />.
But what if I want to use a concatenation of two resource items.
I have tried this
<Label id="versionLabel" text="%appVersion.prefix%appVersion.number" /> but it does not work. How to do it correctly?
I'm not sure if this is possible. (but I might be wrong)
You might want to file an enhancement request: http://javafx-jira.kenai.com
As a work-around you could set the text in the controller.
Another way
<HBox spacing="0">
<children>
<Label id="versionLabel1" text="%appVersion.prefix" />
<Label id="versionLabel2" text="%appVersion.number" />
</children>
</HBox>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With