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 org.zanata.adapter.po.PoReader2 |
getPoReader() |
protected Set<String> |
getSrcDocNames() |
protected File |
getTransFile(LocaleMapping locale,
String docName) |
org.zanata.rest.dto.resource.Resource |
loadSrcDoc(File sourceDir,
String docName) |
void |
visitTranslationResources(String srcDocName,
org.zanata.rest.dto.resource.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 org.zanata.rest.dto.resource.Resource loadSrcDoc(File sourceDir, String docName) throws IOException
loadSrcDoc
in class AbstractPushStrategy
IOException
public void visitTranslationResources(String srcDocName, org.zanata.rest.dto.resource.Resource srcDoc, PushCommand.TranslationResourcesVisitor callback) throws IOException
visitTranslationResources
in class AbstractPushStrategy
IOException
protected org.zanata.adapter.po.PoReader2 getPoReader()
Copyright © 2015 Zanata Project. All rights reserved.