doc / ch.tutteli.atrium / IAtriumFactory / newPropertiesBasedTranslationSupplier

newPropertiesBasedTranslationSupplier

abstract fun newPropertiesBasedTranslationSupplier(): TranslationSupplier (source)
Deprecated: Use AssertImpl.coreFactory instead; will be removed with 1.0.0

Creates a TranslationSupplier which is based on properties and is compatible with ResourceBundle concerning the structure of the properties files.

For instance, the translations for ch.tutteli.atrium.DescriptionAnyAssertion and the Locale de_CH are stored in a properties file named DescriptionAnyAssertion_de_CH.properties in the folder /ch/tutteli/atrium/. Moreover the files need to be encoded in ISO-8859-1 (restriction to be compatible with ResourceBundle).

An entry in such a file would look like as follows: TO_BE = a translation for TO_BE

Return
The newly created translation supplier.