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

pathTransformer

var pathTransformer: (String) -> String

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

For each translated string the *.pot file points to the location in the source code (lines starting with #: ). Each of those lines is put through this transformer (without the leading #: ).

Default value: {a -> a} (identity)

See Also

getPathTransformer

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

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