Modifier and Type | Method and Description |
---|---|
TranslationsResource |
PoReader2.extractTarget(InputSource inputSource)
Extract contents of a PO file and convert to a TranslationsResource.
|
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.
|
FileDetails |
PoWriter2.writePoToFile(File poFile,
Resource doc,
TranslationsResource targetDoc)
Generates a po file from a Resource and a TranslationsResource.
|
Modifier and Type | Method and Description |
---|---|
void |
PropReader.extractTarget(TranslationsResource doc,
InputStream in)
Deprecated.
|
void |
PropReader.extractTarget(TranslationsResource doc,
InputStream in,
Resource srcDoc) |
static void |
PropWriter.writeTranslations(Resource srcDoc,
TranslationsResource doc,
File baseDir,
String bundleName,
String locale,
PropWriter.CHARSET charset,
boolean createSkeletons)
Writes to given properties file of the given TranslationsResource
in
PropWriter.CHARSET.UTF8 or PropWriter.CHARSET.Latin1 encoding. |
static void |
PropWriter.writeTranslationsFile(Resource srcDoc,
TranslationsResource doc,
File propertiesFile,
PropWriter.CHARSET charset,
boolean createSkeletons)
Writes to given properties file of the given TranslationsResource
in
PropWriter.CHARSET.UTF8 or PropWriter.CHARSET.Latin1 encoding. |
Modifier and Type | Method and Description |
---|---|
TranslationsResource |
XliffReader.extractTarget(File file) |
Modifier and Type | Method and Description |
---|---|
static void |
XliffWriter.write(File baseDir,
Resource doc,
String locale,
TranslationsResource targetDoc,
boolean createSkeletons)
Used for writing target file
|
static void |
XliffWriter.writeFile(File file,
Resource doc,
String locale,
TranslationsResource targetDoc,
boolean createSkeletons)
Used for writing translation file with given translations map
|
Modifier and Type | Method and Description |
---|---|
FileDetails |
PullStrategy.writeTransFile(Resource docWithLocalName,
String docName,
LocaleMapping localeMapping,
TranslationsResource targetDoc)
pre: docWithLocalName.getName() must match docName if docWithLocalName is
not null
|
FileDetails |
GettextDirStrategy.writeTransFile(Resource doc,
String docName,
LocaleMapping locMapping,
TranslationsResource targetDoc) |
FileDetails |
UTF8PropertiesStrategy.writeTransFile(Resource doc,
String docName,
LocaleMapping localeMapping,
TranslationsResource targetDoc) |
FileDetails |
XmlStrategy.writeTransFile(Resource doc,
String docName,
LocaleMapping locale,
TranslationsResource targetDoc) |
FileDetails |
GettextPullStrategy.writeTransFile(Resource doc,
String docName,
LocaleMapping locMapping,
TranslationsResource targetDoc) |
FileDetails |
PropertiesStrategy.writeTransFile(Resource doc,
String docName,
LocaleMapping localeMapping,
TranslationsResource targetDoc) |
FileDetails |
XliffStrategy.writeTransFile(Resource doc,
String docName,
LocaleMapping localeMapping,
TranslationsResource targetDoc) |
Modifier and Type | Method and Description |
---|---|
List<TranslationsResource> |
PushCommand.splitIntoBatch(TranslationsResource doc,
int maxBatchSize)
Split TranslationsResource into List<TranslationsResource>
according to maxBatchSize, but only if mergeType=AUTO
|
Modifier and Type | Method and Description |
---|---|
List<TranslationsResource> |
PushCommand.splitIntoBatch(TranslationsResource doc,
int maxBatchSize)
Split TranslationsResource into List<TranslationsResource>
according to maxBatchSize, but only if mergeType=AUTO
|
void |
PushCommand.TranslationResourcesVisitor.visit(LocaleMapping locale,
TranslationsResource targetDoc) |
Modifier and Type | Method and Description |
---|---|
ProcessStatus |
AsyncProcessClient.startTranslatedDocCreationOrUpdate(String idNoSlash,
String projectSlug,
String iterationSlug,
LocaleId locale,
TranslationsResource translatedDoc,
Set<String> extensions,
String merge,
boolean myTrans)
Deprecated.
|
ProcessStatus |
AsyncProcessClient.startTranslatedDocCreationOrUpdateWithDocId(String projectSlug,
String iterationSlug,
LocaleId locale,
TranslationsResource translatedDoc,
String docId,
Set<String> extensions,
String merge,
boolean assignCreditToUploader) |
Modifier and Type | Method and Description |
---|---|
TranslationsResource |
TranslationsResource.createSample() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
MockTranslatedDocResource.putTranslations(String idNoSlash,
LocaleId locale,
TranslationsResource messageBody,
Set<String> extensions,
String merge)
Deprecated.
|
javax.ws.rs.core.Response |
TranslatedDocResource.putTranslations(String idNoSlash,
LocaleId locale,
TranslationsResource messageBody,
Set<String> extensions,
String merge)
Deprecated.
|
javax.ws.rs.core.Response |
MockTranslatedDocResource.putTranslationsWithDocId(LocaleId locale,
TranslationsResource messageBody,
String docId,
Set<String> extensions,
String merge) |
javax.ws.rs.core.Response |
TranslatedDocResource.putTranslationsWithDocId(LocaleId locale,
TranslationsResource messageBody,
String docId,
Set<String> extensions,
String merge)
Updates the translations for a document and a locale.
|
ProcessStatus |
MockAsynchronousProcessResource.startTranslatedDocCreationOrUpdate(String idNoSlash,
String projectSlug,
String iterationSlug,
LocaleId locale,
TranslationsResource translatedDoc,
Set<String> extensions,
String merge,
boolean myTrans)
Deprecated.
|
ProcessStatus |
AsynchronousProcessResource.startTranslatedDocCreationOrUpdate(String idNoSlash,
String projectSlug,
String iterationSlug,
LocaleId locale,
TranslationsResource translatedDoc,
Set<String> extensions,
String merge,
boolean assignCreditToUploader)
Deprecated.
|
ProcessStatus |
MockAsynchronousProcessResource.startTranslatedDocCreationOrUpdateWithDocId(String projectSlug,
String iterationSlug,
LocaleId locale,
TranslationsResource translatedDoc,
String docId,
Set<String> extensions,
String merge,
boolean assignCreditToUploader) |
ProcessStatus |
AsynchronousProcessResource.startTranslatedDocCreationOrUpdateWithDocId(String projectSlug,
String iterationSlug,
LocaleId locale,
TranslationsResource translatedDoc,
String docId,
Set<String> extensions,
String merge,
boolean assignCreditToUploader)
Attempts to start the translation of a document.
|
Copyright © 2018 Zanata Project. All rights reserved.