doc / ch.tutteli.atrium.core / CoreFactory / newPropertiesBasedTranslationSupplier

newPropertiesBasedTranslationSupplier

abstract fun newPropertiesBasedTranslationSupplier(): TranslationSupplier (source)
Deprecated: Open an issue in case you used this; Will be removed with 0.17.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.