public class UTF8PropertiesStrategy extends PropertiesStrategy
Modifier | Constructor and Description |
---|---|
protected |
UTF8PropertiesStrategy(PullOptions opts) |
Modifier and Type | Method and Description |
---|---|
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
|
getExtensions, getTransFileToWrite, needsDocToWriteTrans
getOpts
protected UTF8PropertiesStrategy(PullOptions opts)
public void writeSrcFile(org.zanata.rest.dto.resource.Resource doc) throws IOException
writeSrcFile
in interface PullStrategy
writeSrcFile
in class PropertiesStrategy
IOException
public 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
PullStrategy
writeTransFile
in interface PullStrategy
writeTransFile
in class PropertiesStrategy
doc
- may be null if needsDocToWriteTrans() returns falsedocName
- may be null if needsDocToWriteTrans() returns falseIOException
Copyright © 2014 Zanata Project. All rights reserved.