internationalization - Terminate the i18n key in fxml -
i separate internationalization key normal text in labeled javafx element using fxml. element looks this:
<button text="%select..." onmouseclicked="#selectdatalocation" />
and properties file contains entry:
select=select
the resulting text of button should select...
, exception javafx.fxml.loadexception: resource "select..." not found.
is there way terminate internationalization key, following text interpreted normal text?
edit: i'm aware use work around:
public class controller { @fxml private button selectbutton; @fxml private void initialize() { selectbutton.settext(selectbutton.gettext() + "..."); } }
but think overkill, add dots internationalized string.
Comments
Post a Comment