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