public class XliffStrategy extends AbstractPullStrategy
| Modifier | Constructor and Description |
|---|---|
protected |
XliffStrategy(PullOptions opts) |
| Modifier and Type | Method and Description |
|---|---|
org.zanata.rest.StringSet |
getExtensions()
Which extensions (eg gettext, comment) does this strategy need to fetch
from the server?
|
boolean |
needsDocToWriteTrans()
Does this strategy need the source document (Resource) when writing
translations?
|
void |
writeSrcFile(org.zanata.rest.dto.resource.Resource doc) |
org.zanata.common.io.FileDetails |
writeTransFile(org.zanata.rest.dto.resource.Resource doc,
String docName,
LocaleMapping localeMapping,
org.zanata.rest.dto.resource.TranslationsResource targetDoc)
pre: docWithLocalName.getName() must match docName if docWithLocalName is
not null
|
getOpts, getTransFileToWrite, isTransOnlyprotected XliffStrategy(PullOptions opts)
public org.zanata.rest.StringSet getExtensions()
PullStrategypublic boolean needsDocToWriteTrans()
PullStrategypublic void writeSrcFile(org.zanata.rest.dto.resource.Resource doc)
throws IOException
IOExceptionpublic org.zanata.common.io.FileDetails writeTransFile(org.zanata.rest.dto.resource.Resource doc,
String docName,
LocaleMapping localeMapping,
org.zanata.rest.dto.resource.TranslationsResource targetDoc)
throws IOException
PullStrategydoc - may be null if needsDocToWriteTrans() returns falsedocName - may be null if needsDocToWriteTrans() returns falseIOExceptionCopyright © 2014 Zanata Project. All Rights Reserved.