public class OfflinePoStrategy extends GettextDirStrategy
GettextDirStrategy but uses msgctxt to map text flow id.localSrcDocNames| Constructor and Description |
|---|
OfflinePoStrategy(SourceDocResourceClient client) |
| Modifier and Type | Method and Description |
|---|---|
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)
This implementation retrieves document names from the server.
|
protected PoReader2 |
getPoReader() |
String[] |
getSrcFiles(File srcDir,
com.google.common.collect.ImmutableList<String> includes,
com.google.common.collect.ImmutableList<String> excludes,
boolean excludeLocaleFilenames,
boolean useDefaultExclude,
boolean isCaseSensitive)
Scan srcDir to return a list of all source files.
|
String[] |
getSrcFiles(File srcDir,
com.google.common.collect.ImmutableList<String> includes,
com.google.common.collect.ImmutableList<String> excludes,
com.google.common.collect.ImmutableList<String> fileExtensions,
boolean useDefaultExcludes,
boolean isCaseSensitive)
excludes should already contain paths for translation files that are to
be excluded.
|
boolean |
isTransOnly()
Indicates if this strategy must work without access to source files.
|
Resource |
loadSrcDoc(File sourceDir,
String docName) |
checkSrcFileNamesgetSrcDocNames, getTransFile, visitTranslationResourcesdocNameToFilename, getExtensions, getFileExtension, initgetOpts, setPushOptionspublic OfflinePoStrategy(SourceDocResourceClient client)
protected PoReader2 getPoReader()
getPoReader in class AbstractGettextPushStrategypublic boolean isTransOnly()
AbstractPushStrategyisTransOnly in class AbstractPushStrategypublic 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 AbstractGettextPushStrategyIOExceptionpublic String[] getSrcFiles(File srcDir, com.google.common.collect.ImmutableList<String> includes, com.google.common.collect.ImmutableList<String> excludes, boolean excludeLocaleFilenames, boolean useDefaultExclude, boolean isCaseSensitive)
AbstractPushStrategygetSrcFiles in class AbstractPushStrategysrcDir - base directory in which to find source filesincludes - empty to find all source files, non-empty to find only the
documents in this listexcludes - 'excludes' patterns configured by the userexcludeLocaleFilenames - adds entries to excludes to ignore any file with a locale id
suffix before the file extension.useDefaultExclude - true to also exclude a set of default excludes for common temp
file and source control filenamesisCaseSensitive - case sensitive search for includes and excludes optionspublic String[] getSrcFiles(File srcDir, com.google.common.collect.ImmutableList<String> includes, com.google.common.collect.ImmutableList<String> excludes, com.google.common.collect.ImmutableList<String> fileExtensions, boolean useDefaultExcludes, boolean isCaseSensitive)
AbstractCommonPushStrategygetSrcFiles in class AbstractCommonPushStrategy<PushOptions>public Resource loadSrcDoc(File sourceDir, String docName) throws IOException
loadSrcDoc in class AbstractGettextPushStrategyIOExceptionCopyright © 2018 Zanata Project. All rights reserved.