data class MsgId
A translatable string (MsgStr) in the base language with an optional String context.
id - the string (optonally with plural versions) to be translated
context - an optional context with additional information for which situations the string should be translated
(e.g. for disambiguation of multiple identicals strings that should be translated differently in different situations)
MsgId(id: MsgStr, context: String? = null)
A translatable string (MsgStr) in the base language with an optional String context. |
val context: String?
an optional context with additional information for which situations the string should be translated (e.g. for disambiguation of multiple identicals strings that should be translated differently in different situations) |
|
val id: MsgStr
the string (optonally with plural versions) to be translated |
fun toByteArray(): ByteArray
Converts this object to the default ByteArray representation as used in *.mo files. The id is converted according to MsgStr.toByteArray, it is separated from the context by CONTEXT_SEPARATOR. |
const val CONTEXT_SEPARATOR: Char
The |