public class GettextPullStrategy extends AbstractGettextPullStrategy
| Constructor and Description |
|---|
GettextPullStrategy(PullOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
File |
getTransFileToWrite(String docName,
LocaleMapping localeMapping)
Provides the file reference that will be used to write a Translation file
for a given Resource.
|
org.zanata.common.io.FileDetails |
writeTransFile(org.zanata.rest.dto.resource.Resource doc,
String docName,
LocaleMapping locMapping,
org.zanata.rest.dto.resource.TranslationsResource targetDoc)
pre: docWithLocalName.getName() must match docName if docWithLocalName is
not null
|
getExtensions, getPoWriter, needsDocToWriteTrans, writeSrcFilegetOpts, isTransOnlypublic GettextPullStrategy(PullOptions opts)
public File getTransFileToWrite(String docName, LocaleMapping localeMapping)
PullStrategydocName - may be null if needsDocToWriteTrans() returns falselocaleMapping - Locale mapping to use.public org.zanata.common.io.FileDetails writeTransFile(org.zanata.rest.dto.resource.Resource doc,
String docName,
LocaleMapping locMapping,
org.zanata.rest.dto.resource.TranslationsResource targetDoc)
throws IOException
PullStrategydoc - may be null if needsDocToWriteTrans() returns falsedocName - may be null if needsDocToWriteTrans() returns falseIOExceptionCopyright © 2013 Zanata Project. All Rights Reserved.