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

MoWriter

@ExperimentalUnsignedTypes class MoWriter

Writes a MO file for given base strings and associated translated strings.

Constructors

<init>

MoWriter()

Writes a MO file for given base strings and associated translated strings.

Functions

writeStream

fun writeStream(stream: OutputStream, translations: Map<MsgId, MsgStr>, isBigEndian: Boolean): Unit

Writes the given translations as (low-endian) MO file to the given output stream

Companion Object Properties

EMPTY_MSGID

val EMPTY_MSGID: MsgId

A MsgId with the empty string "" as the only string and no MsgId.context. The MoWriter adds the line "Content-Type: text/plain; charset=utf-8" to the translation of this empty string (if not already present).