doc / ch.tutteli.atrium.reporting.translating / PropertiesBasedTranslationSupplier / getFileNameFor

getFileNameFor

protected fun getFileNameFor(baseName: String, locale: Locale): String (source)

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.

The implementation is based on ResourceBundle.Control.toBundleName.

Parameters

baseName - Usually the Translatable or another identifier for which we are searching translations. Has to contain the package name as well if necessary ('.' will be replaced with '/').

locale - The Locale for which we are searching a translation.

Return
The name of the properties file.