The JPOX system is internationalisable hence messages (to log files or exceptions) can be displayed in multiple languages. Currently JPOX contains localisation files in the default locale (English), but can be extended easily by adding localisation files in languages such as Spanish, French, etc. The internationalisation operates around the org.jpox.util.Localiser class that is responsible for generating the messages in the specified locale. Each class needs to instantiate a Localiser
private static final Localiser LOCALISER=Localiser.getInstance("org.jpox.store.Localisation");
LOCALISER.msg("StoreManager.SchemaDataInitialise",schemaName,autoStartMechanism)
StoreManager.SchemaDataInitialise=Initialising Schema "{0}" using "{1}" auto-start option
StoreManager.SchemaDataInitialise=Inicializando la esquema "{0}" con la opción de empezar "{1}"Further references: International Components for Unicode for Java |