gradle-josm-plugin / org.openstreetmap.josm.gradle.plugin.task / PoCompile

PoCompile

open class PoCompile : DefaultTask

Compile *.po files (textual gettext files) to *.mo files (binary gettext files).

This task requires the command line tool msgfmt (part of GNU gettext) to work properly! If the tool is not installed, it will only issue a warning (not fail), but translations from *.po files won't be available.

Constructors

<init>

PoCompile(sourceSet: I18nSourceSet)

Compile *.po files (textual gettext files) to *.mo files (binary gettext files).

Properties

outDir

lateinit var outDir: File

The target directory where the MO files will be placed (automatically initialized after the project is evaluated)

sourceSet

val sourceSet: I18nSourceSet

The source set, for which all *.po files will be compiled to *.mo files.

Functions

action

fun action(): Unit

The main action of this task. Compiles the *.po files in the sourceSet to MO files in the outDir.