Lucy uses the standard
java.util.ResourceBundle mechanism to translate all text that is presented to a user.
For your convenience, it is wrapped in a
TLcyLang utility class,
which provides one static method
getString( String ).
The given parameter is the English text. The returned value is the text translation in the required language, provided the
correct translation file is available.
Lucy retrieves translation files by searching for the file
lucy/DefaultResources_*.properties, where the asterisk represents the required language,
lucy/DefaultResources_nl.properties for Dutch translations for example.
You set the language by using the
-Duser.language=.. Java system property. Lucy supports three languages by default:
-Duser.language=enor any other unknown abbreviation)
You can add additional languages by translating the
DefaultResources.properties file to those languages.