public abstract class AbstractGettextPushStrategy extends AbstractPushStrategy
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
localSrcDocNames |
Constructor and Description |
---|
AbstractGettextPushStrategy() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkSrcFileNames(String projectType,
String[] srcFiles,
boolean isInteractive)
Warn the user if they have selected project type 'podir' and the path
contains 'pot/'.
|
Set<String> |
findDocNames(File srcDir,
com.google.common.collect.ImmutableList<String> includes,
com.google.common.collect.ImmutableList<String> excludes,
boolean useDefaultExclude,
boolean caseSensitive,
boolean excludeLocaleFilenames) |
protected PoReader2 |
getPoReader() |
protected Set<String> |
getSrcDocNames() |
protected File |
getTransFile(LocaleMapping locale,
String docName) |
Resource |
loadSrcDoc(File sourceDir,
String docName) |
void |
visitTranslationResources(String srcDocName,
Resource srcDoc,
PushCommand.TranslationResourcesVisitor callback) |
docNameToFilename, getExtensions, getFileExtension, getSrcFiles, init, isTransOnly
getOpts, getSrcFiles, setPushOptions
protected void checkSrcFileNames(String projectType, String[] srcFiles, boolean isInteractive)
public Set<String> findDocNames(File srcDir, com.google.common.collect.ImmutableList<String> includes, com.google.common.collect.ImmutableList<String> excludes, boolean useDefaultExclude, boolean caseSensitive, boolean excludeLocaleFilenames) throws IOException
findDocNames
in class AbstractPushStrategy
IOException
protected File getTransFile(LocaleMapping locale, String docName)
public Resource loadSrcDoc(File sourceDir, String docName) throws IOException
loadSrcDoc
in class AbstractPushStrategy
IOException
public void visitTranslationResources(String srcDocName, Resource srcDoc, PushCommand.TranslationResourcesVisitor callback) throws IOException
visitTranslationResources
in class AbstractPushStrategy
IOException
protected PoReader2 getPoReader()
Copyright © 2018 Zanata Project. All rights reserved.