TranslatableWithArgs

data class TranslatableWithArgs(val translatable: Translatable, val arguments: List<Any>) : Translatable(source)

A Translatable which contains placeholders for arguments.

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.

Constructors

Link copied to clipboard
constructor(translatable: Translatable, argument: Any)

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

constructor(translatable: Translatable, arg1: Any, arg2: Any)

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

constructor(translatable: Translatable, arg1: Any, arg2: Any, vararg otherArgs: Any)

Creates a TranslatableWithArgs with the given translatable, the first argument arg1, the second argument arg2 and the otherArgs.

constructor(translatable: Translatable, arguments: List<Any>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard
open val id: String

The id of this Translatable -- per default it is "KClass.fullName ID_SEPARATOR" without the spaces.

Link copied to clipboard
open override val name: String

The name of this Translatable -- the name together with its KClass.qualifiedName should identify a Translatable (see id).

Link copied to clipboard

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

Functions

Link copied to clipboard
open override fun getDefault(): String

Returns the default representation of this Translatable.