Modifier and Type | Method and Description |
---|---|
Resource |
PoReader2.extractTemplate(InputSource inputSource,
LocaleId sourceLocaleId,
String docName)
Extract contents of a POT file and convert to a Resource.
|
Modifier and Type | Method and Description |
---|---|
void |
PoWriter2.writePo(File baseDir,
Resource doc,
String locale,
TranslationsResource targetDoc)
Deprecated.
|
void |
PoWriter2.writePo(OutputStream stream,
String charset,
Resource doc,
TranslationsResource targetDoc)
Generates a po file from a Resource and a TranslationsResource, writing
it directly to an output stream.
|
void |
PoWriter2.writePot(File baseDir,
Resource doc)
Deprecated.
|
void |
PoWriter2.writePot(OutputStream stream,
String charset,
Resource doc)
Generates a pot file from a Resource, writing it directly to an output
stream.
|
FileDetails |
PoWriter2.writePoToFile(File poFile,
Resource doc,
TranslationsResource targetDoc)
Generates a po file from a Resource and a TranslationsResource,
returning FileDetails with the File and its MD5 digest.
|
void |
PoWriter2.writePotToDir(File potDir,
Resource doc)
Deprecated.
|
void |
PoWriter2.writePotToFile(File potFile,
Resource doc)
Generates a pot file from Resource (document).
|
Modifier and Type | Method and Description |
---|---|
void |
PropReader.extractTarget(TranslationsResource doc,
InputStream in,
Resource srcDoc) |
void |
PropReader.extractTemplate(Resource doc,
InputStream in)
Reads properties from a given
InputStream and adds them to the
given Resource . |
static void |
PropWriter.writeSource(Resource doc,
File baseDir,
PropWriter.CHARSET charset)
Writes a properties file representation of the given
Resource to
the given directory in PropWriter.CHARSET.UTF8 or PropWriter.CHARSET.Latin1 encoding. |
Modifier and Type | Method and Description |
---|---|
Resource |
XliffReader.extractTemplate(File file,
LocaleId sourceLocaleId,
String docName,
String validationType) |
Modifier and Type | Method and Description |
---|---|
static void |
XliffWriter.write(File baseDir,
Resource doc,
String locale)
Used for writing source file
|
static void |
XliffWriter.write(File baseDir,
Resource doc,
String locale,
TranslationsResource targetDoc,
boolean createSkeletons,
boolean approvedOnly)
Used for writing target file
|
static void |
XliffWriter.writeFile(File file,
Resource doc,
String locale,
TranslationsResource targetDoc,
boolean createSkeletons,
boolean approvedOnly)
Used for writing translation file with given translations map
|
Modifier and Type | Method and Description |
---|---|
protected void |
PullCommand.pullDocForLocale(PullStrategy strat,
Resource doc,
String localDocName,
String docId,
boolean createSkeletons,
LocaleMapping locMapping,
File transFile) |
void |
XmlStrategy.writeSrcFile(Resource doc) |
void |
AbstractGettextPullStrategy.writeSrcFile(Resource doc) |
void |
PullStrategy.writeSrcFile(Resource docWithLocalName) |
void |
XliffStrategy.writeSrcFile(Resource doc) |
void |
UTF8PropertiesStrategy.writeSrcFile(Resource doc) |
void |
PropertiesStrategy.writeSrcFile(Resource doc) |
Modifier and Type | Method and Description |
---|---|
Resource |
XmlStrategy.loadSrcDoc(File sourceDir,
String docName) |
abstract Resource |
AbstractPushStrategy.loadSrcDoc(File sourceDir,
String docName) |
Resource |
OfflinePoStrategy.loadSrcDoc(File sourceDir,
String docName) |
Resource |
XliffStrategy.loadSrcDoc(File sourceDir,
String docName) |
Resource |
AbstractGettextPushStrategy.loadSrcDoc(File sourceDir,
String docName) |
Resource |
PropertiesStrategy.loadSrcDoc(File sourceDir,
String docName) |
Modifier and Type | Method and Description |
---|---|
void |
XmlStrategy.visitTranslationResources(String docName,
Resource srcDoc,
PushCommand.TranslationResourcesVisitor visitor) |
abstract void |
AbstractPushStrategy.visitTranslationResources(String docName,
Resource srcDoc,
PushCommand.TranslationResourcesVisitor visitor) |
void |
XliffStrategy.visitTranslationResources(String docName,
Resource srcDoc,
PushCommand.TranslationResourcesVisitor visitor) |
void |
AbstractGettextPushStrategy.visitTranslationResources(String srcDocName,
Resource srcDoc,
PushCommand.TranslationResourcesVisitor callback) |
void |
PropertiesStrategy.visitTranslationResources(String docName,
Resource srcDoc,
PushCommand.TranslationResourcesVisitor callback) |
Modifier and Type | Method and Description |
---|---|
Resource |
LocaleMappedTranslatedDoc.getSource() |
Constructor and Description |
---|
LocaleMappedTranslatedDoc(Resource source,
TranslationsResource translation,
LocaleMapping locale) |
Modifier and Type | Method and Description |
---|---|
Resource |
TranslatedDoc.getSource() |
Constructor and Description |
---|
TranslatedDoc(Resource source,
TranslationsResource translation,
LocaleId locale) |
Modifier and Type | Method and Description |
---|---|
Resource |
SourceDocResourceClient.getResource(String docId,
Set<String> extensions) |
Modifier and Type | Method and Description |
---|---|
String |
SourceDocResourceClient.putResource(String docId,
Resource resource,
Set<String> extensions,
boolean copyTrans) |
ProcessStatus |
AsyncProcessClient.startSourceDocCreation(String idNoSlash,
String projectSlug,
String iterationSlug,
Resource resource,
Set<String> extensions,
boolean copytrans)
Deprecated.
|
ProcessStatus |
AsyncProcessClient.startSourceDocCreationOrUpdate(String idNoSlash,
String projectSlug,
String iterationSlug,
Resource resource,
Set<String> extensions,
boolean copytrans)
Deprecated.
|
ProcessStatus |
AsyncProcessClient.startSourceDocCreationOrUpdateWithDocId(String projectSlug,
String iterationSlug,
Resource resource,
Set<String> extensions,
String docId) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
MockSourceDocResource.post(Resource resource,
Set<String> extensions,
boolean copyTrans) |
javax.ws.rs.core.Response |
SourceDocResource.post(Resource resource,
Set<String> extensions,
boolean copytrans)
Creates a new source Document.
|
javax.ws.rs.core.Response |
MockSourceDocResource.putResource(String idNoSlash,
Resource resource,
Set<String> extensions,
boolean copyTrans)
Deprecated.
|
javax.ws.rs.core.Response |
SourceDocResource.putResource(String idNoSlash,
Resource resource,
Set<String> extensions,
boolean copytrans)
Deprecated.
|
javax.ws.rs.core.Response |
MockSourceDocResource.putResourceWithDocId(Resource resource,
String docId,
Set<String> extensions,
boolean copytrans) |
javax.ws.rs.core.Response |
SourceDocResource.putResourceWithDocId(Resource resource,
String docId,
Set<String> extensions,
boolean copytrans)
Creates or modifies a source Document.
|
ProcessStatus |
MockAsynchronousProcessResource.startSourceDocCreation(String idNoSlash,
String projectSlug,
String iterationSlug,
Resource resource,
Set<String> extensions,
boolean copytrans)
Deprecated.
|
ProcessStatus |
AsynchronousProcessResource.startSourceDocCreation(String idNoSlash,
String projectSlug,
String iterationSlug,
Resource resource,
Set<String> extensions,
boolean copytrans)
Deprecated.
|
ProcessStatus |
MockAsynchronousProcessResource.startSourceDocCreationOrUpdate(String idNoSlash,
String projectSlug,
String iterationSlug,
Resource resource,
Set<String> extensions,
boolean copytrans)
Deprecated.
|
ProcessStatus |
AsynchronousProcessResource.startSourceDocCreationOrUpdate(String idNoSlash,
String projectSlug,
String iterationSlug,
Resource resource,
Set<String> extensions,
boolean copytrans)
Deprecated.
|
ProcessStatus |
MockAsynchronousProcessResource.startSourceDocCreationOrUpdateWithDocId(String projectSlug,
String iterationSlug,
Resource resource,
Set<String> extensions,
String docId) |
ProcessStatus |
AsynchronousProcessResource.startSourceDocCreationOrUpdateWithDocId(String projectSlug,
String iterationSlug,
Resource resource,
Set<String> extensions,
String docId)
Attempts to starts the creation or update of a source document.
|
Copyright © 2018 Zanata Project. All rights reserved.