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

I18nSourceSet

interface I18nSourceSet

Interface that defines a container for three SourceDirectorySets each one containing files for one of these translation formats: *.po, *.mo (both from gettext) and *.lang (custom format for JOSM).

Properties

lang

abstract val lang: SourceDirectorySet

Source set for *.lang files (by default only files ending in .lang are considered)

mo

abstract val mo: SourceDirectorySet

Source set for *.mo files (by default only files ending in .mo are considered).

name

abstract val name: String

The name of the SourceSet for which this interface provides SourceDirectorySets for i18n.

po

abstract val po: SourceDirectorySet

Source set for *.po files (by default only files ending in .po are considered).

Functions

lang

abstract fun lang(configureClosure: Closure<in SourceDirectorySet>): I18nSourceSet

Configure the SourceDirectorySet for *.lang files using a Closure.

abstract fun lang(configureAction: Action<in SourceDirectorySet>): I18nSourceSet

Configure the SourceDirectorySet for *.lang files using an Action.

mo

abstract fun mo(configureClosure: Closure<in SourceDirectorySet>): I18nSourceSet

Configure the SourceDirectorySet for *.mo files using a Closure.

abstract fun mo(configureAction: Action<in SourceDirectorySet>): I18nSourceSet

Configure the SourceDirectorySet for *.mo files using an Action.

po

abstract fun po(configureClosure: Closure<in SourceDirectorySet>): I18nSourceSet

Configure the SourceDirectorySet for *.po files using a Closure.

abstract fun po(configureAction: Action<in SourceDirectorySet>): I18nSourceSet

Configure the SourceDirectorySet for *.po files using an Action.

Inheritors

DefaultI18nSourceSet

class DefaultI18nSourceSet : I18nSourceSet

Implementation for a combination of one SourceDirectorySets for each of the three supported translation formats.