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

MoCompile

open class MoCompile : DefaultTask

This task "compiles" several *.mo files to *.lang files. For the language specified in I18nConfig.mainLanguage, only the "msgid" is used (the text which will be translated). For the other languages, the "msgstr" is used (the text which is already translated to this language).

Constructors

<init>

MoCompile(poCompile: PoCompile, sourceSet: I18nSourceSet)

This task "compiles" several *.mo files to *.lang files. For the language specified in I18nConfig.mainLanguage, only the "msgid" is used (the text which will be translated). For the other languages, the "msgstr" is used (the text which is already translated to this language).

Properties

outDir

lateinit var outDir: File

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

poCompile

val poCompile: PoCompile

The task for compiling *.po files to *.mo files. Its outputs are used as inputs for this task

sourceSet

val sourceSet: I18nSourceSet

The I18nSourceSet for which the *.mo files will be compiled

Functions

action

fun action(): Unit

The main task action, compiles the MO files to *.lang files and puts them into the outDir.