All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.droidsonroids.gradle.localization.ConfigExtension.groovy Maven / Gradle / Ivy

There is a newer version: 1.0.19
Show newest version
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
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy