public class PoWriter2 extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PoWriter2.Builder |
Constructor and Description |
---|
PoWriter2()
Deprecated.
use PoWriter2Builder
|
PoWriter2(boolean encodeTabs)
Deprecated.
use PoWriter2Builder
|
PoWriter2(boolean encodeTabs,
boolean mapIdToMsgctxt)
Deprecated.
use PoWriter2Builder
|
Modifier and Type | Method and Description |
---|---|
void |
writePo(File baseDir,
Resource doc,
String locale,
TranslationsResource targetDoc)
Deprecated.
|
void |
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 |
writePot(File baseDir,
Resource doc)
Deprecated.
|
void |
writePot(OutputStream stream,
String charset,
Resource doc)
Generates a pot file from a Resource, writing it directly to an output
stream.
|
FileDetails |
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 |
writePotToDir(File potDir,
Resource doc)
Deprecated.
|
void |
writePotToFile(File potFile,
Resource doc)
Generates a pot file from Resource (document).
|
@Deprecated public PoWriter2(boolean encodeTabs, boolean mapIdToMsgctxt)
@Deprecated public PoWriter2(boolean encodeTabs)
@Deprecated public PoWriter2()
@Deprecated public void writePot(File baseDir, Resource doc) throws IOException
baseDir
- doc
- IOException
@Deprecated public void writePotToDir(File potDir, Resource doc) throws IOException
potDir
- doc
- IOException
public void writePotToFile(File potFile, Resource doc) throws IOException
doc
- potFile
- file to be writtenIOException
public void writePot(OutputStream stream, String charset, Resource doc) throws IOException
IOException
@Deprecated public void writePo(File baseDir, Resource doc, String locale, TranslationsResource targetDoc) throws IOException
baseDir
- doc
- locale
- targetDoc
- IOException
public FileDetails writePoToFile(File poFile, Resource doc, TranslationsResource targetDoc) throws IOException
poFile
- file to be writtendoc
- a source Resource whose translation is to be writtentargetDoc
- translated document to be writtenIOException
public void writePo(OutputStream stream, String charset, Resource doc, TranslationsResource targetDoc) throws IOException
stream
- doc
- targetDoc
- IOException
Copyright © 2018 Zanata Project. All rights reserved.