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

<init>

TranslatableWithArgs(translatable: ITranslatable, argument: Any)

Creates an ITranslatableWithArgs with the given translatable and its one and only argument.

Parameters

translatable - An ITranslatable which one placeholder for an argument. argument - The argument which will be used to substitute the placeholder of the given translatable. TranslatableWithArgs(translatable: ITranslatable, arg1: Any, vararg otherArguments: Any)

Creates an ITranslatableWithArgs with the given translatable, the first argument arg1 and the otherArguments.

Parameters

translatable - An ITranslatable 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: ITranslatable, arguments: Array<Any>)

Parameters

translatable - The ITranslatable 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