class I18nConfig
Holds configuration options regarding internationalization.
I18nConfig(project: Project)
Holds configuration options regarding internationalization. |
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. |
|
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: |
|
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. |
|
var pathTransformer: (String) -> String
Replaces each occurence of the value of Project.getProjectDir in all file paths of the generated *.pot file. |
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: |
|
fun pathTransformer(closure: Closure<String>): Unit
Alternative to the setter of property pathTransformer using a Groovy Closure. |