gradle-josm-plugin / org.openstreetmap.josm.gradle.plugin.i18n.io / MsgStr

MsgStr

data class MsgStr

A single translatable string in singular and optionally one or more plural versions.

Parameters

strings - a list of all singular and plural variants of this string. The first element is the singular version, the rest of the elements are the plurals.

Constructors

<init>

MsgStr(singularString: String, vararg pluralStrings: String)MsgStr(strings: List<String>)

A single translatable string in singular and optionally one or more plural versions.

Properties

strings

val strings: List<String>

a list of all singular and plural variants of this string. The first element is the singular version, the rest of the elements are the plurals.

Functions

toByteArray

fun toByteArray(): ByteArray

Converts this object to the default ByteArray representation as used in *.mo files. The strings for the different grammatical numbers (singular, plural(s)) are separated by GRAMMATICAL_NUMBER_SEPARATOR.

Companion Object Properties

GRAMMATICAL_NUMBER_SEPARATOR

const val GRAMMATICAL_NUMBER_SEPARATOR: Char

The 0x00 character, that is used by default to separate the strings in a MsgStr in the ByteArray representation of the object.