pl.droidsonroids.gradle.localization.ConfigExtension.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-gradle-localization-plugin Show documentation
Show all versions of android-gradle-localization-plugin Show documentation
Gradle plugin for generating localized string resources
package pl.droidsonroids.gradle.localization
import org.apache.commons.csv.CSVStrategy
import java.text.Normalizer
/**
* Plugin configuration extension. See README.md for details
* @author koral--
*/
class ConfigExtension {
boolean allowNonTranslatableTranslation = false
boolean allowEmptyTranslations = false
boolean escapeApostrophes = true
boolean escapeQuotes = true
boolean escapeNewLines = true
boolean convertTripleDotsToHorizontalEllipsis = true
boolean escapeSlashes = true
TagEscapingStrategy tagEscapingStrategy = TagEscapingStrategy.IF_TAGS_ABSENT
Normalizer.Form normalizationForm = Normalizer.Form.NFC
String defaultColumnName = 'default'
String nameColumnName = 'name'
String translatableColumnName = 'translatable'
String formattedColumnName = 'formatted'
String commentColumnName = 'comment'
File csvFile
String csvFileURI
String csvGenerationCommand
File xlsFile
String xlsFileURI
File outputDirectory
String sheetName
List ignorableColumns = []
CSVStrategy csvStrategy
String outputFileName = 'strings.xml'
String outputIndent = ' '
boolean skipInvalidName
boolean skipDuplicatedName
String defaultLocaleQualifier
Integer nameColumnIndex
}