class PropertiesPerLocaleTranslationSupplier : PropertiesBasedTranslationSupplier<Locale>
Represents a TranslationSupplier which is based on properties-files which are structured per Locale.
For instance, the translations for ch.tutteli.atrium.DescriptionAnyAssertion and the Locale de_CH are
stored in a properties file named Atrium_de_CH.properties in the folder /ch/tutteli/atrium/reporting/translating.
For instance, the translations for the Locale de_CH are stored in a properties file named .
An entry in such a file would look like the following:
ch.tutteli.atrium.DescriptionAnyAssertion-TO_BE = a translation for TO_BE
PropertiesPerLocaleTranslationSupplier()
Represents a TranslationSupplier which is based on properties-files which are structured per Locale. |
fun getNotForRoot(translatable: Translatable, locale: Locale): String?
Returns the translation for the given translatable and the given locale or |
fun get(translatable: Translatable, locale: Locale): String? |
|
fun getFileNameFor(baseName: String, locale: Locale): String
Returns the name of the properties file without extension -- including the package (as prefixed relative path) in which it resides if necessary -- in which we expect to find a translation in the given locale for baseName. |