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).
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). |
lateinit var outDir: File
The target directory where the *.lang files will be placed (automatically initialized after the project is evaluated) |
|
val poCompile: PoCompile
The task for compiling *.po files to *.mo files. Its outputs are used as inputs for this task |
|
val sourceSet: I18nSourceSet
The I18nSourceSet for which the *.mo files will be compiled |
fun action(): Unit
The main task action, compiles the MO files to *.lang files and puts them into the outDir. |