gradle-josm-plugin / org.openstreetmap.josm.gradle.plugin.config / I18nConfig

I18nConfig

class I18nConfig

Holds configuration options regarding internationalization.

Constructors

<init>

I18nConfig(project: Project)

Holds configuration options regarding internationalization.

Properties

bugReportEmail

var bugReportEmail: String?

E-Mail address to which bugs regarding i18n should be reported. This will be put into the *.pot files that are forwarded to the translators.

copyrightHolder

var copyrightHolder: String?

Person or organization that holds the copyright on the project. This will appear in the header of the *.pot file as follows:

mainLanguage

var mainLanguage: String

The main language is in this context the language used in the raw strings occuring in the source code. It's the starting point on which the translators will base their translations. Use the language codes, which you also use to name the *.po, *.mo or *.lang files.

pathTransformer

var pathTransformer: (String) -> String

Replaces each occurence of the value of Project.getProjectDir in all file paths of the generated *.pot file.

Functions

getPathTransformer

fun getPathTransformer(repoUrl: String): (String) -> String

Creates a path transformer that replaces an absolute file path of the *.pot file with a URL to a hosted instance of the project. Supply a base URL to a source code browser on the web, it will be transformed to the full URL as follows:

pathTransformer

fun pathTransformer(closure: Closure<String>): Unit

Alternative to the setter of property pathTransformer using a Groovy Closure.