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.
PoCompile(sourceSet: I18nSourceSet)
Compile *.po files (textual gettext files) to *.mo files (binary gettext files). |
lateinit var outDir: File
The target directory where the MO files will be placed (automatically initialized after the project is evaluated) |
|
val sourceSet: I18nSourceSet
The source set, for which all *.po files will be compiled to *.mo files. |
fun action(): Unit
The main action of this task. Compiles the *.po files in the sourceSet to MO files in the outDir. |