Skip to content

Localization

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

Each instance of Entry ()

L10N class

Description

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

Key Methods

get(String key)

Purpose:

Return translation for provided key

Description:

  • Creates 3 resource bundles for current locale based on .properties files inside of resources/L10N/[language] where [language] is ISO3 name (eng, deu, ...) of language
  • Iterate through each bundle and search for provided String key
  • Returns translated String or null

Return value: String or null

Usage:

String translatedString = L10N.get("hello");

createShortNameBinding

Clone this wiki locally