doc / ch.tutteli.atrium.reporting.translating / TranslatableWithArgs / <init>

<init>

TranslatableWithArgs(translatable: Translatable, argument: Any)

Creates a TranslatableWithArgs with the given translatable and its one and only argument.

Parameters

translatable - A Translatable which one placeholder for an argument.

argument - The argument which will be used to substitute the placeholder of the given translatable.

TranslatableWithArgs(translatable: Translatable, arg1: Any, vararg otherArguments: Any)

Creates a TranslatableWithArgs with the given translatable, the first argument arg1 and the otherArguments.

Parameters

translatable - A Translatable with an variable number of placeholders (at least one for arg1).

arg1 - The argument for the first placeholder of the given translatable.

otherArguments - The remaining arguments for the remaining placeholders of the given translatable.

TranslatableWithArgs(translatable: Translatable, arguments: Array<Any>)

Parameters

translatable - The Translatable as such which contains placeholders and for which translations can be been defined.

arguments - The arguments which should be used to substitute the placeholders of the translatable.

Constructor