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

Package org.openstreetmap.josm.gradle.plugin.i18n.io

Readers and writers for *.mo files (binary format used by gettext) and *.lang files (custom binary format used by JOSM)

Types

FourBytes

data class FourBytes

Container class for four bytes, that can then be converted to a Long value, either as big endian or little endian.

LangReader

class LangReader

A reader class for reading the custom *.lang file format of JOSM.

LangWriter

class LangWriter

Writer for creating *.lang files from a Map of MsgIds to MsgStrs, which e.g. MoReader.readFile can produce.

MoReader

class MoReader

Reads the strings contained inside a *.mo file.

MoWriter

class MoWriter

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

MsgId

data class MsgId

A translatable string (MsgStr) in the base language with an optional String context.

MsgStr

data class MsgStr

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

Extensions for External Classes

java.io.InputStream

kotlin.collections.List