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 handleEmptyTranslationsAsDefault = false
boolean allowNonTranslatableTranslation = false
boolean allowEmptyTranslations = false
boolean escapeApostrophes = true
boolean escapeQuotes = true
boolean escapeNewLines = true
boolean convertTripleDotsToHorizontalEllipsis = true
boolean escapeSlashes = true
boolean useAllSheets = false
TagEscapingStrategy tagEscapingStrategy = TagEscapingStrategy.IF_TAGS_ABSENT
Normalizer.Form normalizationForm = Normalizer.Form.NFC
String defaultColumnName = 'default'
Integer nameColumnIndex
String nameColumnName
String translatableColumnName = 'translatable'
String formattedColumnName = 'formatted'
String commentColumnName = 'comment'
String tagEscapingStrategyColumnName
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
}