Skip to content

Localization

Alex Bruch edited this page Dec 5, 2024 · 6 revisions

Localization process

Entry class has StringProperty name for displayed name. We create Binding in a Constructor with help of L10N class;

L10N class

Description

The L10N class provides utility methods for handling localization (L10N) in a JavaFX application.

Key Methods

get(String key) : Returns translated String for provided String

createStringBinding(String key) : Creates a StringBinding that fetches a localized string based on the key and locale.

createShortNameBinding(Product product) : Retrieves a short name binding for a Product object based on its database name.

Clone this wiki locally